func CopyFileRange(dst, src *FD, remain int64) (written int64, handled bool, err error)
CopyFileRange copies at most remain bytes of data from src to dst, using
the copy_file_range system call. dst and src must refer to regular files.
ErrDeadlineExceeded is returned for an expired deadline.
This is exported by the os package as os.ErrDeadlineExceeded.
ErrFileClosing is returned when a file descriptor is used after it
has been closed.
ErrNetClosing is returned when a network descriptor is used after
it has been closed. Keep this string consistent because of issue
#4373: since historically programs have not been able to detect
this error, they look for the string.
ErrNoDeadline is returned when a request is made to set a deadline
on a file type that does not use the poller.
ErrNotPollable is returned when the file or socket is not suitable
for event notification.
func IsPollDescriptor(fd uintptr) bool
IsPollDescriptor reports whether fd is the descriptor being used by the poller.
This is only used for testing.
func Splice(dst, src *FD, remain int64) (written int64, handled bool, sc string, err error)
Splice transfers at most remain bytes of data from src to dst, using the
splice system call to minimize copies of data from and to userspace.
Splice creates a temporary pipe, to serve as a buffer for the data transfer.
src and dst must both be stream-oriented sockets.
If err != nil, sc is the system call which caused the error.
The pages are generated with Goldsv0.1.6-preview. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project and developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds.