blob: 538d6e7f296c5cb02d741f985389f0b4c0989115 [file] [log] [blame]
Paul Sokolovsky8bc35162014-02-14 17:16:35 +02001// Use special typecode to differentiate repr() of bytearray vs array.array('B')
2// (underlyingly they're same).
3#define BYTEARRAY_TYPECODE 0
4
5int mp_binary_get_size(char typecode);
Paul Sokolovsky0c43cf92014-04-11 03:47:21 +03006mp_obj_t mp_binary_get_val_array(char typecode, void *p, int index);
7mp_obj_t mp_binary_get_val(char struct_type, char val_type, byte **ptr);
8void mp_binary_set_val_array(char typecode, void *p, int index, mp_obj_t val_in);
Damien George71e9bfa2014-04-18 23:28:12 +01009void mp_binary_set_val_array_from_int(char typecode, void *p, int index, machine_int_t val);