pipe

package
v0.0.0-...-70285c8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 25, 2016 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BuffSizeAlign = bytesize.KB * 4
	FileSizeAlign = bytesize.MB * 4
)

Variables

This section is empty.

Functions

func OpenFile

func OpenFile(fileName string, exclusive bool) (*os.File, error)

func OpenTempFile

func OpenTempFile(dir, prefix string) (*os.File, error)

func Pipe

func Pipe() (Reader, Writer)

func PipeFile

func PipeFile(buffSize, fileSize int, f *os.File) (Reader, Writer)

func PipeSize

func PipeSize(buffSize int) (Reader, Writer)

Types

type Closer

type Closer interface {
	io.Closer
	CloseWithError(err error) error
}

type Reader

type Reader interface {
	io.Reader
	Closer
	Buffered() (int, error)
}

type Writer

type Writer interface {
	io.Writer
	Closer
	Available() (int, error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL