final ByteVector put122 ( final int byteValue , final int shortValue1 , final int shortValue2 ) { int currentLength = length ; if ( currentLength + 5 > data . length ) { enlarge ( 5 ) ; } byte [ ] currentData = data ; currentData [ currentLength ++ ] = ( byte ) byteValue ; currentData [ currentLength ++ ] = ( byte ) ( shortValue1 >>> 8 ) ; currentData [ currentLength ++ ] = ( byte ) shortValue1 ; currentData [ currentLength ++ ] = ( byte ) ( shortValue2 >>> 8 ) ; currentData [ currentLength ++ ] = ( byte ) shortValue2 ; length = currentLength ; return this ; }
Puts one byte and two shorts into this byte vector . The byte vector is automatically enlarged if necessary .