writeBE

Writes a big-endian/little-endian base type to output range.

@nogc nothrow
void
writeBE
(
T
R
)
(
ref R output
,
T n
)
if (
isOutputRange!(R, ubyte)
)

Parameters

output R

ubyte output range.

n T

A base type to write.

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

Warning: Doesn't report write errors.

Meta