pub fn writeSliceSwap(w: *Writer, Elem: type, slice: []const Elem) Error!void w: *WriterElem: typeslice: []const ElemWriteFailedSee the Writer implementation for detailed diagnostics.
1001
1002
1003
1004
1005
1006
1007pub fn writeSliceSwap(w: *Writer, Elem: type, slice: []const Elem) Error!void {
for (slice) |elem| {
var tmp = elem;
std.mem.byteSwapAllFields(Elem, &tmp);
try w.writeAll(@ptrCast(&tmp));
}
}