counter

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Writer

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

Writer counts total number of bytes written with it. We need it to get actual number of bytes written, after compression and encryption.

func NewWriter

func NewWriter(w io.WriteCloser, count *atomic.Uint64) *Writer

func (*Writer) Close

func (cw *Writer) Close() error

func (*Writer) Write

func (cw *Writer) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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