writeValue

fnubyte[] 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

valueThe value to write.
fileEndianThe endianness to use for the output.

Returns

A byte array containing the value in the specified endianness.