func (s *Splice) SetFlags(flags int) {
	s.flags = flags
}
SetFlags sets the Splice flags.
package gosplice
import (
	"errors"
	"io"
	"os"
	"sync"
	"syscall"
)
const (
	SpliceFMore     = 0x01
	SpliceFNonblock = 0x02
	SpliceFMove     = 0x03
)
var ErrNoFD = errors.New("The requested stream does not have Fd() method")
var (
	pipeFct   = syscall.Pipe
	spliceFct = syscall.Splice
)
type Splice struct {
	sync.Mutex
	pipe       []int
	bufferSize int
	flags      int
}
type Filer interface {
	File() (*os.File, error)
}
type FDer interface {
	Fd() uintptr
}
func (s *Splice) SetBufferSize(size int) {
	s.bufferSize = size
}