serialize this buffer . see ds.ov2.util.apdu _ serializable #to_byte_array apdu_serializable . to_byte_array . concode_field_sep short size concode_elem_sep byte[] buf concode_field_sep void set_size concode_elem_sep boolean is_compatible_with concode_elem_sep short size concode_elem_sep short from_byte_array
short function ( short arg0 , short arg1 , byte [ ] arg2 , short arg3 ) { Misc . myassert ( arg1 < size , ( short ) ( 0 ) ) ; short loc0 = ( short ) ( arg1 + arg0 ) <= size ? arg0 : ( short ) ( size - arg1 ) ; Misc . array_copy ( buf , arg1 , arg2 , arg3 , loc0 ) ; if ( ( short ) ( arg1 + arg0 ) == size ) return ( short ) ( arg0 + 1 ) ; else return loc0 ; }