writeUint16
fn
ubyte[2] writeUint16(ushort v) @safe pure nothrow @nogcWrites a big-endian uint16 to buf at position 0.
Parameters
v | Value to write. |
Returns
The 2-byte array.
ubyte[2] writeUint16(ushort v) @safe pure nothrow @nogcWrites a big-endian uint16 to buf at position 0.
v | Value to write. |