readercounter

package
v7.2.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReaderCounter

type ReaderCounter struct {
	R io.Reader // underlying Reader
	N int64     // number of bytes read
}

Wraps a Reader and counts how many bytes are read from it

func New

func New(r io.Reader) *ReaderCounter

func (*ReaderCounter) Read

func (c *ReaderCounter) Read(d []byte) (int, error)

Jump to

Keyboard shortcuts

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