struct WriteFileOptions [src]

Fields

in_offset: u64 = 0
in_len: ?u64 = nullnull 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: []posix.iovec_const = &[0]posix.iovec_const{}
header_count: usize = 0The trailer count is inferred from headers_and_trailers.len - header_count

Source

pub const WriteFileOptions = struct { in_offset: u64 = 0, /// `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. in_len: ?u64 = null, headers_and_trailers: []posix.iovec_const = &[0]posix.iovec_const{}, /// The trailer count is inferred from `headers_and_trailers.len - header_count` header_count: usize = 0, }