go-fuse: github.com/hanwen/go-fuse/splice Index | Files

package splice

import "github.com/hanwen/go-fuse/splice"

Index

Package Files

copy.go pair.go pair_linux.go pool.go splice.go

Constants

const DefaultPipeSize = 16 * 4096

From manpage on ubuntu Lucid:

Since Linux 2.6.11, the pipe capacity is 65536 bytes.

const F_GETPIPE_SZ = 1032
const F_SETPIPE_SZ = 1031

func ClearSplicePool Uses

func ClearSplicePool()

func CopyFds Uses

func CopyFds(dst *os.File, src *os.File) (err error)

func CopyFile Uses

func CopyFile(dstName string, srcName string, mode int) error

Argument ordering follows io.Copy.

func Done Uses

func Done(p *Pair)

Done returns the pipe pair to pool.

func Drop Uses

func Drop(p *Pair)

Closes and discards pipe pair.

func MaxPipeSize Uses

func MaxPipeSize() int

func Resizable Uses

func Resizable() bool

func SpliceCopy Uses

func SpliceCopy(dst *os.File, src *os.File, p *Pair) (int64, error)

func Total Uses

func Total() int

func Used Uses

func Used() int

type Pair Uses

type Pair struct {
    // contains filtered or unexported fields
}

func Get Uses

func Get() (*Pair, error)

func (*Pair) Cap Uses

func (p *Pair) Cap() int

func (*Pair) Close Uses

func (p *Pair) Close() error

func (*Pair) Grow Uses

func (p *Pair) Grow(n int) error

func (*Pair) LoadFrom Uses

func (p *Pair) LoadFrom(fd uintptr, sz int) (int, error)

func (*Pair) LoadFromAt Uses

func (p *Pair) LoadFromAt(fd uintptr, sz int, off int64) (int, error)

func (*Pair) MaxGrow Uses

func (p *Pair) MaxGrow()

func (*Pair) Read Uses

func (p *Pair) Read(d []byte) (n int, err error)

func (*Pair) ReadFd Uses

func (p *Pair) ReadFd() uintptr

func (*Pair) Write Uses

func (p *Pair) Write(d []byte) (n int, err error)

func (*Pair) WriteFd Uses

func (p *Pair) WriteFd() uintptr

func (*Pair) WriteTo Uses

func (p *Pair) WriteTo(fd uintptr, n int) (int, error)

Package splice imports 7 packages (graph) and is imported by 26 packages. Updated 2019-03-29. Refresh now. Tools for package owners.