Function littleToNative [src]

Converts a little-endian integer to host endianness.

Prototype

pub fn littleToNative(comptime T: type, x: T) T

Parameters

T: typex: T

Source

pub fn littleToNative(comptime T: type, x: T) T { return switch (native_endian) { .little => x, .big => @byteSwap(x), }; }