diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-04-19 01:25:49 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-04-19 03:21:06 +0300 |
commit | 1355cf42f23a39d3b887d2771d8bc7f3669d211c (patch) | |
tree | 7ece51437958e6b7ab052e834a31e7ea68c3a023 /py/binary.h | |
parent | 5695e07256413fab8b280a939c264b06f7f5793f (diff) |
modstruct: Fix .calcsize() to account for struct type/alignment.
Diffstat (limited to 'py/binary.h')
-rw-r--r-- | py/binary.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/binary.h b/py/binary.h index 538d6e7f2..54ff2dc56 100644 --- a/py/binary.h +++ b/py/binary.h @@ -2,7 +2,7 @@ // (underlyingly they're same). #define BYTEARRAY_TYPECODE 0 -int mp_binary_get_size(char typecode); +int mp_binary_get_size(char struct_type, char val_type, uint *palign); mp_obj_t mp_binary_get_val_array(char typecode, void *p, int index); mp_obj_t mp_binary_get_val(char struct_type, char val_type, byte **ptr); void mp_binary_set_val_array(char typecode, void *p, int index, mp_obj_t val_in); |