dissect.cstruct.types.pointer#

Module Contents#

Classes#

Pointer

Implements a pointer to some other type.

PointerInstance

Like the Instance class, but for structures referenced by a pointer.

class dissect.cstruct.types.pointer.Pointer(cstruct: Pointer.__init__.cstruct, target: dissect.cstruct.types.BaseType)#

Bases: dissect.cstruct.types.RawType

Implements a pointer to some other type.

__repr__() str#

Return repr(self).

class dissect.cstruct.types.pointer.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.

__repr__() str#

Return repr(self).

__str__() str#

Return str(self).

__getattr__(attr: str) Any#
__int__() int#
__nonzero__() bool#
__add__(other: int | PointerInstance) PointerInstance#
__sub__(other: int | PointerInstance) PointerInstance#
__mul__(other: int | PointerInstance) PointerInstance#
__floordiv__(other: int | PointerInstance) PointerInstance#
__mod__(other: int | PointerInstance) PointerInstance#
__pow__(other: int | PointerInstance) PointerInstance#
__lshift__(other: int | PointerInstance) PointerInstance#
__rshift__(other: int | PointerInstance) PointerInstance#
__and__(other: int | PointerInstance) PointerInstance#
__xor__(other: int | PointerInstance) PointerInstance#
__or__(other: int | PointerInstance) PointerInstance#
__eq__(other: int | PointerInstance) bool#

Return self==value.

dereference() Any#