Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes15kdownloads
memoryobject.h35 linesDownload Raw Back to include
1/* Memory view object. In Python this is available as "memoryview". */2 3#ifndef Py_MEMORYOBJECT_H4#define Py_MEMORYOBJECT_H5#ifdef __cplusplus6extern "C" {7#endif8 9PyAPI_DATA(PyTypeObject) PyMemoryView_Type;10 11#define PyMemoryView_Check(op) Py_IS_TYPE((op), &PyMemoryView_Type)12 13PyAPI_FUNC(PyObject *) PyMemoryView_FromObject(PyObject *base);14#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x0303000015PyAPI_FUNC(PyObject *) PyMemoryView_FromMemory(char *mem, Py_ssize_t size,16                                               int flags);17#endif18#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x030b000019PyAPI_FUNC(PyObject *) PyMemoryView_FromBuffer(const Py_buffer *info);20#endif21PyAPI_FUNC(PyObject *) PyMemoryView_GetContiguous(PyObject *base,22                                                  int buffertype,23                                                  char order);24 25#ifndef Py_LIMITED_API26#  define Py_CPYTHON_MEMORYOBJECT_H27#  include "cpython/memoryobject.h"28#  undef Py_CPYTHON_MEMORYOBJECT_H29#endif30 31#ifdef __cplusplus32}33#endif34#endif /* !Py_MEMORYOBJECT_H */35 
codekingpro/portable-devtools · Team Ai