:py:mod:`dissect.cstruct.types.pointer` ======================================= .. py:module:: dissect.cstruct.types.pointer Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: dissect.cstruct.types.pointer.Pointer dissect.cstruct.types.pointer.PointerInstance .. py:class:: Pointer(cstruct: Pointer.__init__.cstruct, target: dissect.cstruct.types.BaseType) Bases: :py:obj:`dissect.cstruct.types.RawType` Implements a pointer to some other type. .. py:method:: __repr__() -> str Return repr(self). .. py:class:: PointerInstance(type_: dissect.cstruct.types.BaseType, stream: BinaryIO, addr: int, ctx: Dict[str, Any]) Like the Instance class, but for structures referenced by a pointer. .. py:method:: __repr__() -> str Return repr(self). .. py:method:: __str__() -> str Return str(self). .. py:method:: __getattr__(attr: str) -> Any .. py:method:: __int__() -> int .. py:method:: __nonzero__() -> bool .. py:method:: __add__(other: Union[int, PointerInstance]) -> PointerInstance .. py:method:: __sub__(other: Union[int, PointerInstance]) -> PointerInstance .. py:method:: __mul__(other: Union[int, PointerInstance]) -> PointerInstance .. py:method:: __floordiv__(other: Union[int, PointerInstance]) -> PointerInstance .. py:method:: __mod__(other: Union[int, PointerInstance]) -> PointerInstance .. py:method:: __pow__(other: Union[int, PointerInstance]) -> PointerInstance .. py:method:: __lshift__(other: Union[int, PointerInstance]) -> PointerInstance .. py:method:: __rshift__(other: Union[int, PointerInstance]) -> PointerInstance .. py:method:: __and__(other: Union[int, PointerInstance]) -> PointerInstance .. py:method:: __xor__(other: Union[int, PointerInstance]) -> PointerInstance .. py:method:: __or__(other: Union[int, PointerInstance]) -> PointerInstance .. py:method:: __eq__(other: Union[int, PointerInstance]) -> bool Return self==value. .. py:method:: dereference() -> Any