Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../usr/include/python3....
File: memoryobject.h
/* Memory view object. In Python this is available as "memoryview". */
[0] Fix | Delete
[1] Fix | Delete
#ifndef Py_MEMORYOBJECT_H
[2] Fix | Delete
#define Py_MEMORYOBJECT_H
[3] Fix | Delete
#ifdef __cplusplus
[4] Fix | Delete
extern "C" {
[5] Fix | Delete
#endif
[6] Fix | Delete
[7] Fix | Delete
#ifndef Py_LIMITED_API
[8] Fix | Delete
PyAPI_DATA(PyTypeObject) _PyManagedBuffer_Type;
[9] Fix | Delete
#endif
[10] Fix | Delete
PyAPI_DATA(PyTypeObject) PyMemoryView_Type;
[11] Fix | Delete
[12] Fix | Delete
#define PyMemoryView_Check(op) (Py_TYPE(op) == &PyMemoryView_Type)
[13] Fix | Delete
[14] Fix | Delete
#ifndef Py_LIMITED_API
[15] Fix | Delete
/* Get a pointer to the memoryview's private copy of the exporter's buffer. */
[16] Fix | Delete
#define PyMemoryView_GET_BUFFER(op) (&((PyMemoryViewObject *)(op))->view)
[17] Fix | Delete
/* Get a pointer to the exporting object (this may be NULL!). */
[18] Fix | Delete
#define PyMemoryView_GET_BASE(op) (((PyMemoryViewObject *)(op))->view.obj)
[19] Fix | Delete
#endif
[20] Fix | Delete
[21] Fix | Delete
PyAPI_FUNC(PyObject *) PyMemoryView_FromObject(PyObject *base);
[22] Fix | Delete
#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03030000
[23] Fix | Delete
PyAPI_FUNC(PyObject *) PyMemoryView_FromMemory(char *mem, Py_ssize_t size,
[24] Fix | Delete
int flags);
[25] Fix | Delete
#endif
[26] Fix | Delete
#ifndef Py_LIMITED_API
[27] Fix | Delete
PyAPI_FUNC(PyObject *) PyMemoryView_FromBuffer(Py_buffer *info);
[28] Fix | Delete
#endif
[29] Fix | Delete
PyAPI_FUNC(PyObject *) PyMemoryView_GetContiguous(PyObject *base,
[30] Fix | Delete
int buffertype,
[31] Fix | Delete
char order);
[32] Fix | Delete
[33] Fix | Delete
[34] Fix | Delete
/* The structs are declared here so that macros can work, but they shouldn't
[35] Fix | Delete
be considered public. Don't access their fields directly, use the macros
[36] Fix | Delete
and functions instead! */
[37] Fix | Delete
#ifndef Py_LIMITED_API
[38] Fix | Delete
#define _Py_MANAGED_BUFFER_RELEASED 0x001 /* access to exporter blocked */
[39] Fix | Delete
#define _Py_MANAGED_BUFFER_FREE_FORMAT 0x002 /* free format */
[40] Fix | Delete
typedef struct {
[41] Fix | Delete
PyObject_HEAD
[42] Fix | Delete
int flags; /* state flags */
[43] Fix | Delete
Py_ssize_t exports; /* number of direct memoryview exports */
[44] Fix | Delete
Py_buffer master; /* snapshot buffer obtained from the original exporter */
[45] Fix | Delete
} _PyManagedBufferObject;
[46] Fix | Delete
[47] Fix | Delete
[48] Fix | Delete
/* memoryview state flags */
[49] Fix | Delete
#define _Py_MEMORYVIEW_RELEASED 0x001 /* access to master buffer blocked */
[50] Fix | Delete
#define _Py_MEMORYVIEW_C 0x002 /* C-contiguous layout */
[51] Fix | Delete
#define _Py_MEMORYVIEW_FORTRAN 0x004 /* Fortran contiguous layout */
[52] Fix | Delete
#define _Py_MEMORYVIEW_SCALAR 0x008 /* scalar: ndim = 0 */
[53] Fix | Delete
#define _Py_MEMORYVIEW_PIL 0x010 /* PIL-style layout */
[54] Fix | Delete
[55] Fix | Delete
typedef struct {
[56] Fix | Delete
PyObject_VAR_HEAD
[57] Fix | Delete
_PyManagedBufferObject *mbuf; /* managed buffer */
[58] Fix | Delete
Py_hash_t hash; /* hash value for read-only views */
[59] Fix | Delete
int flags; /* state flags */
[60] Fix | Delete
Py_ssize_t exports; /* number of buffer re-exports */
[61] Fix | Delete
Py_buffer view; /* private copy of the exporter's view */
[62] Fix | Delete
PyObject *weakreflist;
[63] Fix | Delete
Py_ssize_t ob_array[1]; /* shape, strides, suboffsets */
[64] Fix | Delete
} PyMemoryViewObject;
[65] Fix | Delete
#endif
[66] Fix | Delete
[67] Fix | Delete
#ifdef __cplusplus
[68] Fix | Delete
}
[69] Fix | Delete
#endif
[70] Fix | Delete
#endif /* !Py_MEMORYOBJECT_H */
[71] Fix | Delete
[72] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function