pub fn writeSliceSwap(w: *Writer, Elem: type, slice: []const Elem) Error!void
pub 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)); } }