Struct PbfReadStatus

Diagnostic for one complete-file PBF read.

struct PbfReadStatus;

error is the stable high-level category. blockSequence and blockOffset identify the enclosing file block when one was being processed. Detailed protobuf/PBF decoder diagnostics deliberately remain below this consumer boundary and are available from the direct low-level PBF APIs.

PbfReadStatus.init is the successful status.

Fields

NameTypeDescription
blockOffset ulongOffset of the enclosing file block in the complete input buffer.
blockSequence ulongZero-based file-block sequence being processed.
error PbfReadErrorHigh-level failure category; PbfReadError.none denotes success.

Properties

NameTypeDescription
ok[get] boolReturns true when no read error has occurred.