iocount

package
v0.0.0-...-0ec99ab Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2015 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 Reader

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

func NewReader

func NewReader(r io.Reader) *Reader

func NewReaderWithCounter

func NewReaderWithCounter(r io.Reader, p *atomic2.AtomicInt64) *Reader

func (*Reader) Count

func (r *Reader) Count() int64

func (*Reader) Read

func (r *Reader) Read(p []byte) (int, error)

type Writer

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

func NewWriter

func NewWriter(w io.Writer) *Writer

func NewWriterWithCounter

func NewWriterWithCounter(w io.Writer, p *atomic2.AtomicInt64) *Writer

func (*Writer) Count

func (w *Writer) Count() int64

func (*Writer) Write

func (w *Writer) Write(p []byte) (int, error)

Jump to

Keyboard shortcuts

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