Function decodePrimitiveBlockLayout

Decode and validate one complete serialized OSMPBF PrimitiveBlock layout.

bool decodePrimitiveBlockLayout(
  const(ubyte)[] input,
  out PrimitiveBlockLayout layout,
  out PbfStatus status
) nothrow @nogc @safe;

StringTable messages are structurally scanned so their merged entry count is known without allocating. The required table must occur at least once, must contain at least one s entry, and merged string index zero must be empty as required by the OSMPBF schema contract. PrimitiveGroup payloads are not interpreted yet.

Parameters

NameDescription
input Complete uncompressed PrimitiveBlock payload bytes.
layout Receives the zero-copy first-pass layout on success.
status Receives success or a precise structural/wire failure.

Returns

true when the block-level structure and StringTable are valid; false otherwise.