Paul Sokolovsky | 8bc3516 | 2014-02-14 17:16:35 +0200 | [diff] [blame] | 1 | // Use special typecode to differentiate repr() of bytearray vs array.array('B') |
| 2 | // (underlyingly they're same). |
| 3 | #define BYTEARRAY_TYPECODE 0 |
| 4 | |
| 5 | int mp_binary_get_size(char typecode); |
Paul Sokolovsky | 0c43cf9 | 2014-04-11 03:47:21 +0300 | [diff] [blame^] | 6 | mp_obj_t mp_binary_get_val_array(char typecode, void *p, int index); |
| 7 | mp_obj_t mp_binary_get_val(char struct_type, char val_type, byte **ptr); |
| 8 | void mp_binary_set_val_array(char typecode, void *p, int index, mp_obj_t val_in); |