Fields
in_offset: u64 = 0,
in_len: ?u64 = null,
null
means the entire file. 0
means no bytes from the file. When this is null
, trailers must be sent in a separate writev() call due to a flaw in the BSD sendfile API. Other operating systems, such as Linux, already do this anyway due to API limitations. If the size of the source file is known, passing the size here will save one syscall.
headers_and_trailers: []os.iovec_const = ref,
header_count: usize = 0,
The trailer count is inferred from headers_and_trailers.len - header_count