readUint24

fnuint readUint24(const(ubyte)[] data) @safe pure nothrow @nogc

Reads a 24-bit unsigned integer from 3 bytes (big-endian).

Parameters

dataSource bytes (must have at least 3 bytes).

Returns

The 24-bit value as a uint.