go/src/os/zero_copy_linux.go

var pollCopyFileRange

var pollSplice

func (f *File) writeTo(w io.Writer) (written int64, handled bool, err error) {}

func (f *File) readFrom(r io.Reader) (written int64, handled bool, err error) {}

func (f *File) spliceToFile(r io.Reader) (written int64, handled bool, err error) {}

func (f *File) copyFile(r io.Reader) (written int64, handled bool, err error) {}

// getPollFDAndNetwork tries to get the poll.FD and network type from the given interface
// by expecting the underlying type of i to be the implementation of syscall.Conn
// that contains a *net.rawConn.
func getPollFDAndNetwork(i any) (*poll.FD, poll.String) {}

func isUnixOrTCP(network string) bool {}