fn readIntSlice(comptime T: type, bytes: []const u8, endian: Endian) T

Asserts that bytes.len >= @typeInfo(T).Int.bits / 8. Reads the integer starting from index 0 and ignores extra bytes. The bit count of T must be evenly divisible by 8.

Parameters

T: type,
bytes: []const u8,
endian: Endian,