Function bigToNative [src]

Converts a big-endian integer to host endianness.

Prototype

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

Parameters

T: typex: T

Source

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