Converts the $(D_KEYWORD ubyte) input range range to T.
The byte order of r is assumed to be big-endian. The length cannot be larger than T.sizeof. Otherwise an assertion failure will be caused.
Desired return type.
Range type.
Input range.
Integral representation of range with the host byte order.
const value = 0xae34e2u; auto networkOrder = NetworkOrder!4(value); assert(networkOrder.toHostOrder() == value);
See Implementation
Converts the $(D_KEYWORD ubyte) input range range to T.
The byte order of r is assumed to be big-endian. The length cannot be larger than T.sizeof. Otherwise an assertion failure will be caused.