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

Function to_struct_ptr

src/pointers/c_pointer.py:272–276  ·  view source on GitHub ↗

Convert a struct to a pointer.

(struct: A)

Source from the content-addressed store, hash-verified

270
271
272def to_struct_ptr(struct: A) -> "StructPointer[A]":
273 """Convert a struct to a pointer."""
274 from .structure import StructPointer
275
276 return StructPointer(id(struct))
277
278
279@handle

Callers 1

_Function · 0.90

Calls 1

StructPointerClass · 0.85

Tested by 1

_Function · 0.72