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
| Name | Type | Description |
|---|---|---|
error
|
WireError | Error code; WireError denotes success.
|
fieldNumber
|
uint | Protobuf field number associated with the status, or zero if unknown. |
offset
|
ulong | Byte offset associated with the status. |
Properties
| Name | Type | Description |
|---|---|---|
ok[get]
|
bool | Returns true when error == WireError.
|
Methods
| Name | Description |
|---|---|
failure
(error, offset, fieldNumber)
|
Construct a failed wire status. |