Function readFieldHeader

Decode one protobuf field key.

bool readFieldHeader(
  scope ref WireCursor cursor,
  out FieldHeader header,
  out WireStatus status
) nothrow @nogc @safe;

Parameters

NameDescription
cursor Cursor positioned at the first byte of a field key.
Receives the validated field number, wire type, and source offset.
status Receives success or a field-key decoding failure.

Returns

true when a valid protobuf field key was decoded; false otherwise.