decodeUint32

fnResult!(Varint32, VarintError) decodeUint32(scope const(ubyte)[] src) @safe pure nothrow @nogc

Decodes one canonical 32-bit varint from src.

Parameters

srcinput starting at the varint.

Returns

Result!(Varint32, VarintError): value plus bytes consumed

(1–5) on success. Failures as documented on decodeUint64, with OVERFLOW for payload bits beyond 32 (5th byte > 0x0F).