iterateStructs

fnStructRange!T iterateStructs(T)(const(ubyte)[] data, ElfEndian endian) pure nothrow @nogc @safe

Create a range for iterating over packed structs in a byte array.

This convenience function creates a StructRange for lazy iteration.

Parameters

dataThe byte array containing the structs.
endianThe endianness of the data.

Returns

A StructRange for iterating over the structs.