writeValue
fn
ubyte[] writeValue(T)(T value, ElfEndian fileEndian) if (isIntegral!T)Write a value to a byte array.
This template function writes an integral value to a new byte array, converting to the specified file endianness.
Parameters
value | The value to write. |
fileEndian | The endianness to use for the output. |
Returns
A byte array containing the value in the specified endianness.