readLE32

private fnuint readLE32(const(ubyte) * p) pure nothrow @nogc

Read a 32-bit little-endian word from an unaligned pointer.

Byte-assembled on anything but little-endian targets (where hardware tolerates the unaligned direct load); the cast form is undefined behavior on strict-alignment and big-endian machines.

Parameters

pPointer to at least 4 bytes.

Returns

32-bit little-endian value starting at p.