Documentation ¶
Index ¶
- Constants
- func ClearSplicePool()
- func CopyFds(dst *os.File, src *os.File) (err error)
- func CopyFile(dstName string, srcName string, mode int) error
- func DiscardAll(r io.Reader)
- func Done(p *Pair)
- func Drop(p *Pair)
- func MaxPipeSize() int
- func Resizable() bool
- func SpliceCopy(dst *os.File, src *os.File, p *Pair) (int64, error)
- func Total() int
- func Used() int
- type Pair
- func (p *Pair) Cap() int
- func (p *Pair) Close() error
- func (p *Pair) Grow(n int) error
- func (p *Pair) LoadFrom(fd uintptr, sz int) (int, error)
- func (p *Pair) LoadFromAt(fd uintptr, sz int, off int64) (int, error)
- func (p *Pair) MaxGrow()
- func (p *Pair) Read(d []byte) (n int, err error)
- func (p *Pair) ReadFd() uintptr
- func (p *Pair) Write(d []byte) (n int, err error)
- func (p *Pair) WriteFd() uintptr
- func (p *Pair) WriteTo(fd uintptr, n int) (int, error)
Constants ¶
View Source
const DefaultPipeSize = 16 * 4096
From manpage on ubuntu Lucid:
Since Linux 2.6.11, the pipe capacity is 65536 bytes.
View Source
const F_GETPIPE_SZ = 1032
View Source
const F_SETPIPE_SZ = 1031
Variables ¶
This section is empty.
Functions ¶
func ClearSplicePool ¶
func ClearSplicePool()
func DiscardAll ¶
func MaxPipeSize ¶
func MaxPipeSize() int
Types ¶
Click to show internal directories.
Click to hide internal directories.