get the most recently added segment . concode_field_sep byte[] buf concode_elem_sep int offset concode_elem_sep int len concode_elem_sep int total_length concode_elem_sep ArrayList<BufferSegment> segments concode_field_sep void add concode_elem_sep byte[] toBytes concode_elem_sep int segmentCount
byte [ ] function ( ) { if ( segments . isEmpty ( ) ) { return null ; } BufferSegment loc0 = segments . get ( segments . size ( ) - 1 ) ; return Arrays . copyOfRange ( loc0 . buf , loc0 . offset , loc0 . offset + loc0 . len ) ; }