ioz

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 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 CountingReader

type CountingReader struct {
	// contains filtered or unexported fields
}

CountingReader implements a io.Reader that counts bytes.

func NewCountingReader

func NewCountingReader(r io.Reader) *CountingReader

NewCountingReader initializes a new CountingReader.

func (*CountingReader) Count

func (c *CountingReader) Count() int64

Count returns the number of bytes read.

func (*CountingReader) Read

func (c *CountingReader) Read(p []byte) (int, error)

Read implements the io.Reader interface.

Jump to

Keyboard shortcuts

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