blob: e9fb38f13f005dd125c3377c8c9674d5090cf81f [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);