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