iocounter

package
v0.173.0 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2022 License: MIT Imports: 1 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Counter

type Counter interface {
	Count() int64
}

Counter counts a number of bytes during an IO operation.

type Writer

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

Writer is counter for io.Writer

func (*Writer) Count

func (c *Writer) Count() int64

Count function return counted bytes

func (*Writer) Write

func (c *Writer) Write(buf []byte) (int, error)

Jump to

Keyboard shortcuts

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