fn readVarInt(comptime ReturnType: type, bytes: []const u8, endian: Endian) ReturnType

Reads an integer from memory with size equal to bytes.len. T specifies the return type, which must be large enough to store the result.

Parameters

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