Function littleToNative [src]
Converts a little-endian integer to host endianness.
Prototype
pub fn littleToNative(comptime T: type, x: T) T
Parameters
T: type
x: T
Source
pub fn littleToNative(comptime T: type, x: T) T {
return switch (native_endian) {
.little => x,
.big => @byteSwap(x),
};
}