Struct

final class ntoseye.Struct

A PDB type bound to an address in an address space: a reflective cursor.

__getattr__(name: str, /) → Any

Reflective field access; missing fields raise AttributeError.

__getitem__(key: str | int, /) → Any

The field value, or an integer sibling cursor index (((T*)p)[i]).

__setattr__(name: str, value: Any, /) → None

cursor.Field = value; only actual PDB fields are assignable.

__setitem__(name: str, value: Any, /) → None

Write a PDB field by name.

property addr: int

Address this cursor refers to.

address_of(name: str) → int

The address of field name, as C’s &cursor->name: what a watchpoint or a raw read needs. A bitfield’s address is its storage unit’s.

cast(type_name: str) → Struct

Reinterpret this address as another PDB type.

follow(name: str) → Struct

Follow a pointer field to its typed target.

read() → dict[str, Any]

Read one whole-struct snapshot into a dictionary; nested struct fields are omitted.

to_dict() → dict[str, Any]
property type: Type

The PDB type of this cursor.

walk(head_field: str, record_type: str, link_field: str) → list[Struct]

Walk a list whose head is a field of this cursor.