Documentation ¶
Overview ¶
Package bufio is a replacement of the standard golang package bufio.
Index ¶
- func OriginalReader(reader io.Reader) *bufio.Reader
- func OriginalReaderSize(reader io.Reader, size int) *bufio.Reader
- 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)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BufferedReader ¶
func NewReader ¶
func NewReader(rawReader io.Reader) *BufferedReader
func (*BufferedReader) Cached ¶
func (v *BufferedReader) Cached() bool
func (*BufferedReader) Release ¶
func (v *BufferedReader) Release()
func (*BufferedReader) SetCached ¶
func (v *BufferedReader) SetCached(cached bool)
type BufferedWriter ¶
func NewWriter ¶
func NewWriter(rawWriter io.Writer) *BufferedWriter
func (*BufferedWriter) Cached ¶
func (v *BufferedWriter) Cached() bool
func (*BufferedWriter) Flush ¶
func (v *BufferedWriter) Flush() error
func (*BufferedWriter) FlushWithoutLock ¶
func (v *BufferedWriter) FlushWithoutLock() error
func (*BufferedWriter) ReadFrom ¶
func (v *BufferedWriter) ReadFrom(reader io.Reader) (int64, error)
func (*BufferedWriter) Release ¶
func (v *BufferedWriter) Release()
func (*BufferedWriter) SetCached ¶
func (v *BufferedWriter) SetCached(cached bool)
Click to show internal directories.
Click to hide internal directories.