const iovlen_t = switch (native_os)
This is either usize or u32. Since, either is fine, let's use the same addBuf function for both writing to a file and sending network messages.
addBuf
13485 13486 13487 13488
const iovlen_t = switch (native_os) { .wasi => u32, else => @FieldType(posix.msghdr_const, "iovlen"), }
This is either usize or u32. Since, either is fine, let's use the same
addBuffunction for both writing to a file and sending network messages.