Struct WireStatus

Error status returned by low-level decoding operations.

struct WireStatus;

offset is measured from the beginning of the current wire buffer. fieldNumber is zero when no protobuf field has been established yet.

Fields

NameTypeDescription
error WireErrorError code; WireError.none denotes success.
fieldNumber uintProtobuf field number associated with the status, or zero if unknown.
offset ulongByte offset associated with the status.

Properties

NameTypeDescription
ok[get] boolReturns true when error == WireError.none.

Methods

NameDescription
failure (error, offset, fieldNumber) Construct a failed wire status.