|
|
@@ -12,6 +12,7 @@ class void_p:
|
|
|
def __sub__(self, i: int) -> 'void_p': ...
|
|
|
def __eq__(self, other: 'void_p') -> bool: ...
|
|
|
def __ne__(self, other: 'void_p') -> bool: ...
|
|
|
+ def __hash__(self) -> int: ...
|
|
|
|
|
|
def hex(self) -> str: ...
|
|
|
|
|
|
@@ -57,7 +58,7 @@ class struct:
|
|
|
|
|
|
def addr(self) -> 'void_p': ...
|
|
|
def copy(self) -> 'struct': ...
|
|
|
- def size(self) -> int: ...
|
|
|
+ def sizeof(self) -> int: ...
|
|
|
def __eq__(self, other: 'struct') -> bool: ...
|
|
|
def __ne__(self, other: 'struct') -> bool: ...
|
|
|
|
|
|
@@ -137,11 +138,13 @@ class _StructLike(Generic[T]):
|
|
|
@classmethod
|
|
|
def from_struct(cls, s: struct) -> T: ...
|
|
|
|
|
|
- def addr(self) -> '_Pointer[T]': ...
|
|
|
+ def addr(self) -> '_PointerLike[T]': ...
|
|
|
def sizeof(self) -> int: ...
|
|
|
def copy(self) -> T: ...
|
|
|
def __eq__(self, other: T) -> bool: ...
|
|
|
def __ne__(self, other: T) -> bool: ...
|
|
|
|
|
|
-class _Pointer(Generic[T], void_p):
|
|
|
- pass
|
|
|
+class _PointerLike(Generic[T]):
|
|
|
+ def __eq__(self, other) -> bool: ...
|
|
|
+ def __ne__(self, other) -> bool: ...
|
|
|
+ def __hash__(self) -> int: ...
|