BlockIdSlot

Description

struct Tinman.Core.Database.BlockIdSlot

Describes the location of a 64-bit word for storing a block ID value in the file of a block storage.

The string representation is '(A:XXXXXXXX)' or '(B:XXXXXXXX)', where XXXXXXXX is the value of Location as an 8-digit hexadecimal number and A, B refer to the value true, false of Absolute, respectively.

Public / Constants

Index​Format


public static readonly attribute IndexFormat → (IBlockIndexFormat<BlockIdSlot>)

Block index format for BlockIdSlot values.

Public / Constructors

At


public static method At → (1)

fileOffset in : int64

[>=0]
The absolute file offset.

returns → BlockIdSlot

The BlockIdSlot value.

Creates a new instance of BlockIdSlot for an absolute file offset.

Public / Attributes

Absolute


public readonly attribute Absolute → (bool)

Does Location refer to an absolute file offset (true) or to a block ID (false)?

Location


public readonly attribute Location → (int64)

Location of the 64-bit word that holds the block ID value.

This is either an absolute file offset (if Absolute is true) or a block ID (if Absolute is false).