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

Name

Description

FlatFilePos

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

Member Functions

Name

Description

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

Name

Description

Ser

Serializes the file index and byte offset.

Unser

Serializes the file index and byte offset.

Data Members

Name

Description

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

Name

Description

operator==

Compares two positions for equality of file index and offset.

Created with MrDocs