Home
last modified time | relevance | path

Searched refs:typecode (Results 1 – 10 of 10) sorted by relevance

/AliOS-Things-master/components/py_engine/engine/py/
A Dobjarray.c75 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 Dobjarray.h40 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 Dbinary.c147 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 Dbinary.h38 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 Dobj.h515 int typecode; // as per binary.h member
766 mp_obj_t mp_obj_new_memoryview(byte typecode, size_t nitems, void *items);
A Dobjstr.c1935 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 Duarray.py15 def __init__(self,typecode,iterable=None): argument
/AliOS-Things-master/components/py_engine/engine/extmod/
A Dmoductypes.c615 bufinfo->typecode = BYTEARRAY_TYPECODE; in uctypes_get_buffer()
A Dmodframebuf.c362 bufinfo->typecode = 'B'; // view framebuf as bytes in framebuf_get_buffer()
A Dmodbluetooth.c214 bufinfo->typecode = 'B'; in bluetooth_uuid_get_buffer()

Completed in 27 milliseconds