diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-04-19 03:13:15 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-04-19 03:22:08 +0300 |
commit | 6204460461cc21b27861fa89b2423119f8cdce88 (patch) | |
tree | a47370140e792aa9722bced667b0922e22122647 /py/binary.h | |
parent | 504e23388ce68fcb1ac80a7c411979718686af7c (diff) | |
download | micropython-6204460461cc21b27861fa89b2423119f8cdce88.tar.gz micropython-6204460461cc21b27861fa89b2423119f8cdce88.zip |
modstruct: Initial implementation of struct.pack().
Diffstat (limited to 'py/binary.h')
-rw-r--r-- | py/binary.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/py/binary.h b/py/binary.h index 54ff2dc56b..46fb5b36b9 100644 --- a/py/binary.h +++ b/py/binary.h @@ -4,6 +4,7 @@ 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); void mp_binary_set_val_array_from_int(char typecode, void *p, int index, machine_int_t val); +mp_obj_t mp_binary_get_val(char struct_type, char val_type, byte **ptr); +void mp_binary_set_val(char struct_type, char val_type, mp_obj_t val_in, byte **ptr); |