serialize the byte array . see ds.ov2.util.apdu _ serializable #to_byte_array apdu_serializable . to_byte_array . concode_field_sep byte[] buf concode_field_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 ) { assert ( arg1 < buf . length ) ; short loc0 = ( short ) ( arg1 + arg0 ) <= buf . length ? arg0 : ( short ) ( buf . length - arg1 ) ; Misc . array_copy ( buf , arg1 , arg2 , arg3 , loc0 ) ; if ( ( short ) ( arg1 + arg0 ) == buf . length ) return ( short ) ( arg0 + 1 ) ; else return loc0 ; }