Bit_Operations module

byte_swap_in_place

procedure · 1 overloadSource

Reverses the byte order of input where it is stored, the in-place form of byte_swap.

ExampleOpen in playground ↗
value: u32 = 0xAABBCCDD;
byte_swap_in_place(*value);
assert(value == 0xDDCCBBAA);
byte_swap_in_place :: (input: *$T)

Parameters

input: *$T

See also