MCPcopy Create free account
hub / github.com/ZeroIntensity/pointers.py / Buffer

Class Buffer

src/pointers/std_structs.py:99–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97
98
99class Buffer(Struct):
100 buf: VoidPointer
101 obj: VoidPointer
102 len: int
103 readonly: int
104 itemsize: int
105 format: bytes
106 ndim: int
107 shape: TypedCPointer[int] = raw_type(ctypes.POINTER(ctypes.c_ssize_t))
108 strides: TypedCPointer[int] = raw_type(ctypes.POINTER(ctypes.c_ssize_t))
109 suboffsets: TypedCPointer[int] = raw_type(ctypes.POINTER(ctypes.c_ssize_t))
110 internal: VoidPointer
111
112
113class TypeObject(Struct):

Callers

nothing calls this directly

Calls 1

raw_typeFunction · 0.85

Tested by

no test coverage detected