blob: d6bab14d05e8d71f811f8f5a655138fa7f3ebbcb [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);
6mp_obj_t mp_binary_get_val(char typecode, void *p, int index);
Paul Sokolovskye9db8402014-04-10 03:45:38 +03007mp_obj_t mp_binary_get_val_unaligned_le(char typecode, byte **ptr);
Paul Sokolovsky8bc35162014-02-14 17:16:35 +02008void mp_binary_set_val(char typecode, void *p, int index, mp_obj_t val_in);