fn addBuf(v: []posix.iovec_const, i: *iovlen_t, bytes: []const u8) void
v: []posix.iovec_const
i: *iovlen_t
bytes: []const u8
13490 13491 13492 13493 13494 13495 13496
fn addBuf(v: []posix.iovec_const, i: *iovlen_t, bytes: []const u8) void { // OS checks ptr addr before length so zero length vectors must be omitted. if (bytes.len == 0) return; if (v.len - i.* == 0) return; v[i.*] = .{ .base = bytes.ptr, .len = bytes.len }; i.* += 1; }