We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb8e365 commit 2c44d44Copy full SHA for 2c44d44
src/pointers/c_pointer.py
@@ -209,7 +209,7 @@ def __rich__(self):
209
return (
210
f"<[green]void[/green] pointer to [cyan]{hex(self.address)}[/cyan]>" # noqa
211
)
212
-
+
213
def __del__(self):
214
pass
215
@@ -265,15 +265,13 @@ def __del__(self):
265
remove_ref(~self)
266
267
268
269
270
def cast(ptr: VoidPointer, data_type: Type[T]) -> TypedCPointer[T]:
271
"""Cast a void pointer to a typed pointer."""
272
return TypedCPointer(
273
ptr.address,
274
data_type,
275
ptr.size,
276
- decref = False
+ decref=False
277
278
279
0 commit comments