mirror of
https://github.com/micropython/micropython.git
synced 2026-01-04 19:20:22 +01:00
objmemoryview: Introduce mp_obj_new_memoryview().
This follows existing pattern for object constructor API and allows to create memoryview objects e.g. in external modules.
This commit is contained in:
1
py/obj.h
1
py/obj.h
@@ -430,6 +430,7 @@ mp_obj_t mp_obj_new_super(mp_obj_t type, mp_obj_t obj);
|
||||
mp_obj_t mp_obj_new_bound_meth(mp_obj_t meth, mp_obj_t self);
|
||||
mp_obj_t mp_obj_new_getitem_iter(mp_obj_t *args);
|
||||
mp_obj_t mp_obj_new_module(qstr module_name);
|
||||
mp_obj_t mp_obj_new_memoryview(byte typecode, mp_uint_t nitems, void *items);
|
||||
|
||||
mp_obj_type_t *mp_obj_get_type(mp_const_obj_t o_in);
|
||||
const char *mp_obj_get_type_str(mp_const_obj_t o_in);
|
||||
|
||||
Reference in New Issue
Block a user