bytecounter

package
v0.1.0-rc4 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StreamCopier

type StreamCopier interface {
	zfs.StreamCopier
	Count() int64
}

StreamCopier wraps a zfs.StreamCopier, reimplemening its interface and counting the bytes written to during copying.

func NewStreamCopier

func NewStreamCopier(sc zfs.StreamCopier) StreamCopier

NewStreamCopier wraps sc into a StreamCopier. If sc is io.Reader, it is guaranteed that the returned StreamCopier implements that interface, too.

Jump to

Keyboard shortcuts

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