BlockInfo

Description

struct Tinman.Core.Database.BlockInfo

Describes a single storage block of a BlockStorage object.

Storage block information is exposed purely for informational purposes.

Public / Methods

Contains


public method Contains → (2)

offset in : int64

Offset of range start (inclusive).

count in : int64

Length of range, in bytes.

returns → bool

true if the given range is contained in this block, false if not.

Does this block contain the given range?

Public / Attributes

End


public attribute End → (get)

value : int64

The block end offset (exclusive).

Absolute offset of block end.

Free


public readonly attribute Free → (bool)

Is this block free (true) or does it represent an allocation (false)?

IsLast


public attribute IsLast → (get)

value : bool

true if this is the last block, false if not.

Is this the last block?

Size


public readonly attribute Size → (int64)

Size of the block, in bytes.

Start


public readonly attribute Start → (int64)

Absolute offset of block start (inclusive).