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

Method make_ct_pointer

src/pointers/base_pointers.py:156–165  ·  view source on GitHub ↗

Convert the address to a ctypes pointer. Returns: The created ctypes pointer.

(self)

Source from the content-addressed store, hash-verified

154 @handle
155 @final
156 def make_ct_pointer(self) -> "ctypes._PointerLike":
157 """Convert the address to a ctypes pointer.
158
159 Returns:
160 The created ctypes pointer.
161 """
162 return ctypes.cast(
163 self.ensure(),
164 ctypes.POINTER(ctypes.c_char * self.size),
165 )
166
167 @abstractmethod
168 def _make_stream_and_ptr(

Callers 3

freeMethod · 0.45
_make_stream_and_ptrMethod · 0.45
freeMethod · 0.45

Calls 1

ensureMethod · 0.45

Tested by

no test coverage detected