modstruct: Basic implementation of native struct alignment and types.

This commit is contained in:
Paul Sokolovsky
2014-04-11 03:47:21 +03:00
parent ef9124f5ff
commit 0c43cf9154
4 changed files with 46 additions and 15 deletions

View File

@@ -3,6 +3,6 @@
#define BYTEARRAY_TYPECODE 0
int mp_binary_get_size(char typecode);
mp_obj_t mp_binary_get_val(char typecode, void *p, int index);
mp_obj_t mp_binary_get_val_unaligned(char typecode, byte **ptr);
void mp_binary_set_val(char typecode, void *p, int index, mp_obj_t val_in);
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);