Documentation ¶
Index ¶
- func ReadFull(r io.Reader, p []byte) (int, error)
- func SimpleReadCloser(r io.ReadCloser) io.ReadCloser
- func SimpleReader(r io.Reader) io.Reader
- func SimpleWriteCloser(w io.WriteCloser) io.WriteCloser
- func SimpleWriter(w io.Writer) io.Writer
- func WriteFull(w io.Writer, p []byte) (int, error)
- type CountReader
- type CountWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SimpleReadCloser ¶
func SimpleReadCloser(r io.ReadCloser) io.ReadCloser
func SimpleWriteCloser ¶
func SimpleWriteCloser(w io.WriteCloser) io.WriteCloser
Types ¶
type CountReader ¶
type CountReader struct {
// contains filtered or unexported fields
}
func NewCountReader ¶
func NewCountReader(r io.Reader, p *atomic2.Int64) *CountReader
func (*CountReader) Count ¶
func (r *CountReader) Count() int64
func (*CountReader) ResetCounter ¶
func (r *CountReader) ResetCounter() int64
type CountWriter ¶
type CountWriter struct {
// contains filtered or unexported fields
}
func NewCountWriter ¶
func NewCountWriter(w io.Writer, p *atomic2.Int64) *CountWriter
func (*CountWriter) Count ¶
func (w *CountWriter) Count() int64
func (*CountWriter) ResetCounter ¶
func (w *CountWriter) ResetCounter() int64
Click to show internal directories.
Click to hide internal directories.