MCPcopy Index your code
hub / github.com/ZeroIntensity/pointers.py / _as_parameter_

Method _as_parameter_

src/pointers/c_pointer.py:221–225  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

219 @property
220 @handle
221 def _as_parameter_(self) -> "ctypes.Array[ctypes._CData]":
222 ctype = get_mapped(self._type)
223
224 deref = (ctype * self._length).from_address(self.ensure())
225 return deref
226
227 @handle
228 def dereference(self) -> List[T]:

Callers

nothing calls this directly

Calls 2

get_mappedFunction · 0.85
ensureMethod · 0.45

Tested by

no test coverage detected