readUint16

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

Reads a big-endian uint16 from data[offset..offset+2].

Parameters

dataSource bytes.
offsetStarting position (updated by 2).

Returns

The uint16 value.