Blender V5.3
blender::BPyMemoryViewOwned Struct Reference

Public Attributes

 PyObject_VAR_HEAD
Py_buffer info
Py_ssize_t shape_and_stride []

Detailed Description

Definition at line 2119 of file py_capi_utils.cc.

Member Data Documentation

◆ info

Py_buffer blender::BPyMemoryViewOwned::info

Snapshot of the caller's #Py_buffer.

  • info.shape and info.strides point into shape_and_stride.
  • info.obj is always null.

Definition at line 2126 of file py_capi_utils.cc.

Referenced by blender::bpy_memoryview_buffer_dealloc(), blender::bpy_memoryview_buffer_getbuffer(), and blender::PyC_MemoryView_FromBufferOwned().

◆ PyObject_VAR_HEAD

blender::BPyMemoryViewOwned::PyObject_VAR_HEAD

Definition at line 2120 of file py_capi_utils.cc.

◆ shape_and_stride

Py_ssize_t blender::BPyMemoryViewOwned::shape_and_stride[]

Flexible array of 2 * info.ndim. Layout:

Definition at line 2133 of file py_capi_utils.cc.

Referenced by blender::PyC_MemoryView_FromBufferOwned().


The documentation for this struct was generated from the following file: