Documentation ¶
Index ¶
- func Pipe(reader Reader, writer Writer) error
- func PipeUntilEOF(reader Reader, writer Writer) error
- type AdaptiveReader
- type AdaptiveWriter
- type BufferedReader
- type BufferedWriter
- func (v *BufferedWriter) Cached() bool
- func (v *BufferedWriter) Flush() error
- func (v *BufferedWriter) FlushWithoutLock() error
- func (v *BufferedWriter) ReadFrom(reader io.Reader) (int64, error)
- func (v *BufferedWriter) Release()
- func (v *BufferedWriter) SetCached(cached bool)
- func (v *BufferedWriter) Write(b []byte) (int, error)
- type ChainWriter
- type ChanReader
- type Reader
- type Writer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PipeUntilEOF ¶
Types ¶
type AdaptiveReader ¶ added in v1.9.1
type AdaptiveReader struct {
// contains filtered or unexported fields
}
AdaptiveReader is a Reader that adjusts its reading speed automatically.
func NewAdaptiveReader ¶ added in v1.9.1
func NewAdaptiveReader(reader io.Reader) *AdaptiveReader
NewAdaptiveReader creates a new AdaptiveReader. The AdaptiveReader instance doesn't take the ownership of reader.
func (*AdaptiveReader) Read ¶ added in v1.9.1
func (v *AdaptiveReader) Read() (*alloc.Buffer, error)
Read implements Reader.Read().
func (*AdaptiveReader) Release ¶ added in v1.11.2
func (v *AdaptiveReader) Release()
type AdaptiveWriter ¶ added in v1.9.1
type AdaptiveWriter struct {
// contains filtered or unexported fields
}
AdaptiveWriter is a Writer that writes alloc.Buffer into underlying writer.
func NewAdaptiveWriter ¶ added in v1.9.1
func NewAdaptiveWriter(writer io.Writer) *AdaptiveWriter
NewAdaptiveWriter creates a new AdaptiveWriter.
func (*AdaptiveWriter) Release ¶ added in v1.11.2
func (v *AdaptiveWriter) Release()
type BufferedReader ¶ added in v1.9.1
func NewBufferedReader ¶ added in v1.9.1
func NewBufferedReader(rawReader io.Reader) *BufferedReader
func (*BufferedReader) Cached ¶ added in v1.9.1
func (v *BufferedReader) Cached() bool
func (*BufferedReader) Release ¶ added in v1.9.1
func (v *BufferedReader) Release()
func (*BufferedReader) SetCached ¶ added in v1.9.1
func (v *BufferedReader) SetCached(cached bool)
type BufferedWriter ¶ added in v1.9.1
func NewBufferedWriter ¶ added in v1.9.1
func NewBufferedWriter(rawWriter io.Writer) *BufferedWriter
func (*BufferedWriter) Cached ¶ added in v1.9.1
func (v *BufferedWriter) Cached() bool
func (*BufferedWriter) Flush ¶ added in v1.9.1
func (v *BufferedWriter) Flush() error
func (*BufferedWriter) FlushWithoutLock ¶ added in v1.17.2
func (v *BufferedWriter) FlushWithoutLock() error
func (*BufferedWriter) ReadFrom ¶ added in v1.17.2
func (v *BufferedWriter) ReadFrom(reader io.Reader) (int64, error)
func (*BufferedWriter) Release ¶ added in v1.9.1
func (v *BufferedWriter) Release()
func (*BufferedWriter) SetCached ¶ added in v1.9.1
func (v *BufferedWriter) SetCached(cached bool)
type ChainWriter ¶ added in v1.17.2
func NewChainWriter ¶ added in v1.17.2
func NewChainWriter(writer Writer) *ChainWriter
func (*ChainWriter) Release ¶ added in v1.17.2
func (v *ChainWriter) Release()
type ChanReader ¶ added in v1.17.2
func NewChanReader ¶ added in v1.17.2
func NewChanReader(stream Reader) *ChanReader
func (*ChanReader) Fill ¶ added in v1.17.2
func (v *ChanReader) Fill()
Private: Visible for testing.
func (*ChanReader) Release ¶ added in v1.17.2
func (v *ChanReader) Release()
Click to show internal directories.
Click to hide internal directories.