同步操作将从 OpenHarmony-SIG/python 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
/* Memory view object. In Python this is available as "memoryview". */#ifndef Py_MEMORYOBJECT_H#define Py_MEMORYOBJECT_H#ifdef __cplusplusextern "C" {#endif#ifndef Py_LIMITED_APIPyAPI_DATA(PyTypeObject) _PyManagedBuffer_Type;#endifPyAPI_DATA(PyTypeObject) PyMemoryView_Type;#define PyMemoryView_Check(op) (Py_TYPE(op) == &PyMemoryView_Type)#ifndef Py_LIMITED_API/* Get a pointer to the memoryview's private copy of the exporter's buffer. */#define PyMemoryView_GET_BUFFER(op) (&((PyMemoryViewObject *)(op))->view)/* Get a pointer to the exporting object (this may be NULL!). */#define PyMemoryView_GET_BASE(op) (((PyMemoryViewObject *)(op))->view.obj)#endifPyAPI_FUNC(PyObject *) PyMemoryView_FromObject(PyObject *base);#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03030000PyAPI_FUNC(PyObject *) PyMemoryView_FromMemory(char *mem, Py_ssize_t size,int flags);#endif#ifndef Py_LIMITED_APIPyAPI_FUNC(PyObject *) PyMemoryView_FromBuffer(Py_buffer *info);#endifPyAPI_FUNC(PyObject *) PyMemoryView_GetContiguous(PyObject *base,int buffertype,char order);/* The structs are declared here so that macros can work, but they shouldn'tbe considered public. Don't access their fields directly, use the macrosand functions instead! */#ifndef Py_LIMITED_API#define _Py_MANAGED_BUFFER_RELEASED 0x001 /* access to exporter blocked */#define _Py_MANAGED_BUFFER_FREE_FORMAT 0x002 /* free format */typedef struct {PyObject_HEADint flags; /* state flags */Py_ssize_t exports; /* number of direct memoryview exports */Py_buffer master; /* snapshot buffer obtained from the original exporter */} _PyManagedBufferObject;/* memoryview state flags */#define _Py_MEMORYVIEW_RELEASED 0x001 /* access to master buffer blocked */#define _Py_MEMORYVIEW_C 0x002 /* C-contiguous layout */#define _Py_MEMORYVIEW_FORTRAN 0x004 /* Fortran contiguous layout */#define _Py_MEMORYVIEW_SCALAR 0x008 /* scalar: ndim = 0 */#define _Py_MEMORYVIEW_PIL 0x010 /* PIL-style layout */typedef struct {PyObject_VAR_HEAD_PyManagedBufferObject *mbuf; /* managed buffer */Py_hash_t hash; /* hash value for read-only views */int flags; /* state flags */Py_ssize_t exports; /* number of buffer re-exports */Py_buffer view; /* private copy of the exporter's view */PyObject *weakreflist;Py_ssize_t ob_array[1]; /* shape, strides, suboffsets */} PyMemoryViewObject;#endif#ifdef __cplusplus}#endif#endif /* !Py_MEMORYOBJECT_H */
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。