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