Searched refs:typecode (Results 1 – 10 of 10) sorted by relevance
/AliOS-Things-master/components/py_engine/engine/py/ |
A D | objarray.c | 75 if (o->typecode == BYTEARRAY_TYPECODE) { in array_print() 79 mp_printf(print, "array('%c'", o->typecode); in array_print() 106 o->typecode = typecode; in array_new() 120 && typecode == BYTEARRAY_TYPECODE) in array_construct() 266 if (typecode == BYTEARRAY_TYPECODE) { in typecode_for_comparison() 267 typecode = 'B'; in typecode_for_comparison() 269 if (typecode <= 'Z') { in typecode_for_comparison() 270 typecode += 32; // to lowercase in typecode_for_comparison() 273 return typecode; in typecode_for_comparison() 552 bufinfo->typecode = o->typecode & TYPECODE_MASK; in array_get_buffer() [all …]
|
A D | objarray.h | 40 size_t typecode : 8; member 53 static inline void mp_obj_memoryview_init(mp_obj_array_t *self, size_t typecode, size_t offset, siz… in mp_obj_memoryview_init() argument 55 self->typecode = typecode; in mp_obj_memoryview_init()
|
A D | binary.c | 147 mp_obj_t mp_binary_get_val_array(char typecode, void *p, size_t index) { in mp_binary_get_val_array() argument 149 switch (typecode) { in mp_binary_get_val_array() 218 #define is_signed(typecode) (typecode > 'Z') argument 358 void mp_binary_set_val_array(char typecode, void *p, size_t index, mp_obj_t val_in) { in mp_binary_set_val_array() argument 359 switch (typecode) { in mp_binary_set_val_array() 375 size_t size = mp_binary_get_size('@', typecode, NULL); in mp_binary_set_val_array() 381 mp_binary_set_val_array_from_int(typecode, p, index, mp_obj_get_int(val_in)); in mp_binary_set_val_array() 385 void mp_binary_set_val_array_from_int(char typecode, void *p, size_t index, mp_int_t val) { in mp_binary_set_val_array_from_int() argument 386 switch (typecode) { in mp_binary_set_val_array_from_int()
|
A D | binary.h | 38 mp_obj_t mp_binary_get_val_array(char typecode, void *p, size_t index); 39 void mp_binary_set_val_array(char typecode, void *p, size_t index, mp_obj_t val_in); 40 void mp_binary_set_val_array_from_int(char typecode, void *p, size_t index, mp_int_t val);
|
A D | obj.h | 515 int typecode; // as per binary.h member 766 mp_obj_t mp_obj_new_memoryview(byte typecode, size_t nitems, void *items);
|
A D | objstr.c | 1935 bufinfo->typecode = 'B'; // bytes should be unsigned, so should unicode byte-access in mp_obj_str_get_buffer()
|
/AliOS-Things-master/components/amp-utility/python/ |
A D | uarray.py | 15 def __init__(self,typecode,iterable=None): argument
|
/AliOS-Things-master/components/py_engine/engine/extmod/ |
A D | moductypes.c | 615 bufinfo->typecode = BYTEARRAY_TYPECODE; in uctypes_get_buffer()
|
A D | modframebuf.c | 362 bufinfo->typecode = 'B'; // view framebuf as bytes in framebuf_get_buffer()
|
A D | modbluetooth.c | 214 bufinfo->typecode = 'B'; in bluetooth_uuid_get_buffer()
|
Completed in 22 milliseconds