CDiskTxPos

On-disk position of a transaction: a block file position plus an offset within the block.

Synopsis

Declared in <index/disktxpos.h>

struct CDiskTxPos
    : FlatFilePos

Base Classes

NameDescription
FlatFilePosLocation of a record within a numbered flat file: a file index and byte offset.

Member Functions

NameDescription
CDiskTxPos [constructor]Constructors
IsNull Returns true when the position is null (no file assigned).
ToString Returns a human-readable "file:offset" description of the position.

Static Member Functions

NameDescription
Ser Serializes the file index and byte offset.
Unser Serializes the file index and byte offset.

Data Members

NameDescription
nFile Index of the flat file, or -1 when null.
nPos Byte offset of the record within the file.
nTxOffset Byte offset of the transaction within the block, measured after the block header.

Non-Member Functions

NameDescription
operator==Compares two positions for equality of file index and offset.