Documentation ¶
Overview ¶
Package bufwriter provides a buffered writer gadget.
Index ¶
Constants ¶
View Source
const DefaultBufferSize = 16 << 10 // 16 Kb
DefaultBufferSize is used if buffers size is <= 0.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
Writer is a buffered io.Writer wrapper.
func New ¶
func New(w io.WriteCloser, bufSize int) *Writer
New creates a new buffered writer. If bufSize <= 0, then DefaultBufferSize is used as internal buffer size.
func (*Writer) Reset ¶
func (wr *Writer) Reset(w io.WriteCloser)
Reset buffer and sets new write target.
Click to show internal directories.
Click to hide internal directories.