readercounter

package
v8.0.1 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: Apache-2.0 Imports: 1 Imported by: 2

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