| ... | @@ -1823,7 +1823,7 @@ test containsAtLeastScalar2 { | ... | @@ -1823,7 +1823,7 @@ test containsAtLeastScalar2 { |
| 1823 | } | 1823 | } |
| 1824 | | 1824 | |
| 1825 | /// Reads an integer from memory with size equal to bytes.len. | 1825 | /// Reads an integer from memory with size equal to bytes.len. |
| 1826 | /// T specifies the return type, which must be large enough to store | 1826 | /// ReturnType specifies the return type, which must be large enough to store |
| 1827 | /// the result. | 1827 | /// the result. |
| 1828 | pub fn readVarInt(comptime ReturnType: type, bytes: []const u8, endian: Endian) ReturnType { | 1828 | pub fn readVarInt(comptime ReturnType: type, bytes: []const u8, endian: Endian) ReturnType { |
| 1829 | assert(@typeInfo(ReturnType).int.bits >= bytes.len * 8); | 1829 | assert(@typeInfo(ReturnType).int.bits >= bytes.len * 8); |