Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CountingWriter ¶
type CountingWriter struct {
// contains filtered or unexported fields
}
func NewCountingWriter ¶
func NewCountingWriter(w io.Writer) *CountingWriter
New creates a new writer that wraps w. The wrapping writer counts the number of bytes written to the wrapped writer.
func (*CountingWriter) BytesWritten ¶
func (w *CountingWriter) BytesWritten() int64
BytesWritten returns the number of bytes that were written to the wrapped writer.
func (*CountingWriter) SetWritten ¶
func (w *CountingWriter) SetWritten(size int64)
Click to show internal directories.
Click to hide internal directories.