This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig standard library. Public Function
byteSwap
Public Function
std.mem.byteSwap
pubfnbyteSwap(comptimeS: type, ptr: *S) void
Reverses the byte order. Handles structs, unions, arrays, enums, floats, and integers recursively. The order of extern struct fields and array elements remains unchanged and will be byte swapped recursively. Useful for converting between little-endian and big-endian representations.
Reverses the byte order. Handles structs, unions, arrays, enums, floats, and integers recursively. The order of extern struct fields and array elements remains unchanged and will be byte swapped recursively. Useful for converting between little-endian and big-endian representations.