Function decodeBlobHeader

Decode one complete serialized BlobHeader message.

bool decodeBlobHeader(
  const(ubyte)[] input,
  out BlobHeaderView header,
  out PbfStatus status
) nothrow @nogc @safe;

Unknown non-group protobuf fields are safely skipped but retained in header.raw; unknown groups fail closed. Known fields encoded with the wrong wire type are treated as unknown field occurrences, matching protobuf's forward-compatible parsing model. At least one correctly encoded occurrence of both required fields (type and datasize) must be present.

Parameters

NameDescription
input Complete serialized BlobHeader message bytes.
Receives the borrowed decoded view on success.
status Receives success or a precise PBF/wire failure.

Returns

true when the complete header is structurally usable; false otherwise.

Notes

No input bytes are copied and no memory is allocated. header must not outlive input.