HeapBlock

final class ntoseye.HeapBlock

Subclass of BaseRecord.

One block of a heap walk: an NT legacy-LFH block, a segment-heap VS chunk, or a segment-heap LFH block.

property address: int
property checksum_ok: bool | None

Whether the header checksum is correct. None if the block kind has no checksum.

property flags: int | None

The header flags. None if the block kind has no header of its own.

property index: int | None

The position in the region or subsegment. None for VS chunks.

property kind: str

nt-lfh-block, vs-chunk, or lfh-block.

property previous_size: int | None

The size in bytes of the previous block. None if the block kind does not record it.

property size: int

The size in bytes, with the header.

property state: str

busy or free.

property unused_bytes: int | None

The number of unused bytes at the end of the block. None if the block does not record them.

property user: int | None

First user byte.

property user_size: int | None

The number of bytes that the caller can use.