public static int encodeDesc ( byte [ ] value , byte [ ] dst , int dstOffset ) { if ( value == null ) { dst [ dstOffset ] = NULL_BYTE_LOW ; return 1 ; } return encode ( value , 0 , value . length , dst , dstOffset , - 1 ) ; }
Encodes the given optional unsigned byte array into a variable amount of bytes for descending order . If the byte array is null exactly 1 byte is written . Otherwise the amount written is determined by calling calculateEncodedLength .