the integral value
a ubyte[] of the value
Tests the toBytes!(T)(T) function
version(LittleEndian) { ulong value = 1; ubyte[] bytes = toBytes(value); assert(bytes == [1, 0, 0, 0, 0, 0, 0, 0]); } else version(BigEndian) { ulong value = 1; ubyte[] bytes = toBytes(value); assert(bytes == [0, 0, 0, 0, 0, 0, 0, 1]); }
Converts the given integral value to its byte encoding