Buckets:
| /* The structs are declared here so that macros can work, but they shouldn't | |
| be considered public. Don't access their fields directly, use the macros | |
| and functions instead! */ | |
| typedef struct { | |
| PyObject_HEAD | |
| int 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 */ | |
| 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; | |
| /* Get a pointer to the memoryview's private copy of the exporter's buffer. */ | |
| static inline Py_buffer* PyMemoryView_GET_BUFFER(PyObject *op) { | |
| return (&_PyMemoryView_CAST(op)->view); | |
| } | |
| /* Get a pointer to the exporting object (this may be NULL!). */ | |
| static inline PyObject* PyMemoryView_GET_BASE(PyObject *op) { | |
| return _PyMemoryView_CAST(op)->view.obj; | |
| } | |
Xet Storage Details
- Size:
- 2.22 kB
- Xet hash:
- 8e9c2c29720250c8656978e7f6b844eb92894cf31cc85452ad31dcadb8f91f47
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.