Documentation ¶
Index ¶
- Constants
- func OpenFile(fileName string, exclusive bool) (*os.File, error)
- func OpenTempFile(dir, prefix string) (*os.File, error)
- func Pipe() (*PipeReader, *PipeWriter)
- func PipeWithFile(buffSize, fileSize int, f *os.File) (*PipeReader, *PipeWriter)
- func PipeWithSize(buffSize int) (*PipeReader, *PipeWriter)
- type PipeCloser
- type PipeReader
- type PipeWriter
Constants ¶
View Source
const ( BuffSizeAlign = bytesize.KB * 4 FileSizeAlign = bytesize.MB * 4 )
Variables ¶
This section is empty.
Functions ¶
func Pipe ¶
func Pipe() (*PipeReader, *PipeWriter)
func PipeWithFile ¶
func PipeWithFile(buffSize, fileSize int, f *os.File) (*PipeReader, *PipeWriter)
func PipeWithSize ¶
func PipeWithSize(buffSize int) (*PipeReader, *PipeWriter)
Types ¶
type PipeCloser ¶
type PipeReader ¶
type PipeReader struct {
// contains filtered or unexported fields
}
func (*PipeReader) Close ¶
func (r *PipeReader) Close() error
func (*PipeReader) CloseWithError ¶
func (r *PipeReader) CloseWithError(err error) error
type PipeWriter ¶
type PipeWriter struct {
// contains filtered or unexported fields
}
func (*PipeWriter) Close ¶
func (w *PipeWriter) Close() error
func (*PipeWriter) CloseWithError ¶
func (w *PipeWriter) CloseWithError(err error) error
Click to show internal directories.
Click to hide internal directories.