readUint24

fnuint readUint24(const(ubyte)[] data, ref size_t offset) @safe pure nothrow @nogc

Reads a big-endian uint24 from data[offset..offset+3].

Parameters

dataSource bytes.
offsetStarting position (updated by 3).

Returns

The uint value (always fits in uint).