fn addBuf(v: []iovec_const, i: *iovlen_t, bytes: []const u8) void v: []iovec_consti: *iovlen_tbytes: []const u83691
3692
3693
3694
3695
3696
3697fn addBuf(v: []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;
}