writeUint16

fnubyte[2] writeUint16(ushort v) @safe pure nothrow @nogc

Writes a big-endian uint16 to buf at position 0.

Parameters

vValue to write.

Returns

The 2-byte array.