fn byteSwapAllFields(comptime S: type, ptr: *S) void

Swap the byte order of all the members of the fields of a struct (Changing their endianness)

Parameters

S: type,
ptr: *S,