readArray
fn
T[] readArray(T)(const(ubyte)[] data, size_t offset, size_t count,
ElfEndian fileEndian)Read an array of structs from a byte array.
This template function reads multiple packed structs from a byte array.
Parameters
data | The byte array to read from. |
offset | The offset in bytes to start reading from. |
count | The number of structs to read. |
fileEndian | The endianness of the data. |
Returns
A dynamic array containing the read structs.
Throws
Exception if offset is out of bounds or not enough data to read.