byte [ ] function ( ByteBuffer arg0 ) { if ( arg0 == null ) { return null ; } if ( arg0 . hasArray ( ) ) { return Arrays . copyOfRange ( arg0 . array ( ) , arg0 . arrayOffset ( ) + arg0 . position ( ) , arg0 . arrayOffset ( ) + arg0 . limit ( ) ) ; } byte [ ] loc0 = new byte [ arg0 . remaining ( ) ] ; arg0 . asReadOnlyBuffer ( ) . get ( loc0 ) ; return loc0 ; }
returns a copy of the bytes from the given bytebuffer , ranging from the the buffer 's current position to the buffer 's limit ; or null if the input is null . the internal states of the given byte buffer will be restored when this method completes execution . when handling bytebuffer from user 's input , it 's typical to call the #copybytesfrom bytebuffer instead of #copyallbytesfrom bytebuffer so as to account for the positionof the input bytebuffer . the opposite is typically true , however , when handling bytebuffer from withint the unmarshallers of the low-level clients . concode_field_sep PlaceHolder placeHolder concode_field_sep byte[] copyAllBytesFrom concode_elem_sep String toBase64 concode_elem_sep byte[] fromHex concode_elem_sep String toHex concode_elem_sep byte[] fromBase64 concode_elem_sep ByteArrayInputStream toStream