bytecounter

package
v0.9.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 7, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReadCloser

type ReadCloser struct {
	io.ReadCloser
	// contains filtered or unexported fields
}

ReadCloser wraps an io.ReadCloser, reimplementing its interface and counting the bytes written to during copying.

func NewReadCloser

func NewReadCloser(rc io.ReadCloser) *ReadCloser

NewReadCloser wraps rc.

func (*ReadCloser) Count

func (self *ReadCloser) Count() uint64

func (*ReadCloser) Read added in v0.9.3

func (self *ReadCloser) Read(p []byte) (int, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL