popLE

Reads a base type from input slice. popLE parses bytes in little-endian order. popBE parses bytes in big-endian order.

@nogc nothrow
T
popLE
(
T
)
(
ref const(ubyte)[] input
,
bool* err
)

Parameters

input const(ubyte)[]

ubyte input range.

err bool*

true if read error.

Supported types: byte, ubyte, short, ushort, int, uint, long, ulong, float, double

Return Value

Type: T

On failure, *err is set to true, return 0. The input range cannot be used anymore.

Meta