Cast a typed pointer to a void pointer.
(ptr: TypedCPointer[Any])
| 253 | |
| 254 | |
| 255 | def to_voidp(ptr: TypedCPointer[Any]) -> VoidPointer: |
| 256 | """Cast a typed pointer to a void pointer.""" |
| 257 | |
| 258 | return VoidPointer(ptr.ensure(), ptr.size) |
| 259 | |
| 260 | |
| 261 | def to_c_ptr(data: T) -> TypedCPointer[T]: |