writeArray

fnubyte[] writeArray(T)(T[] values, ElfEndian fileEndian)

Write an array of structs to a byte array.

This template function writes multiple packed structs to a new byte array.

Parameters

valuesThe array of structs to write.
fileEndianThe endianness to use for the output.

Returns

A byte array containing the structs in the specified endianness.