serialize the boolean . see ds.ov2.util.apdu _ serializable #to_byte_array apdu_serializable . to_byte_array . concode_field_sep boolean value 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 ) { Misc . myassert ( arg1 == 0 , ( short ) ( 0 ) ) ; Misc . myassert ( arg0 > 0 , ( short ) ( 0 ) ) ; arg2 [ arg3 ] = value ? ( byte ) 1 : ( byte ) 0 ; if ( arg0 == 1 ) return 2 ; else return 1 ; }