ioext

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2022 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CounterReadCloser

type CounterReadCloser struct {
	Reader io.ReadCloser

	BytesRead int
}

func (*CounterReadCloser) Close

func (r *CounterReadCloser) Close() error

func (*CounterReadCloser) Read

func (r *CounterReadCloser) Read(p []byte) (n int, err error)

type CounterReadSeekCloser

type CounterReadSeekCloser struct {
	Reader io.ReadSeekCloser

	BytesRead int
}

func (*CounterReadSeekCloser) Close

func (r *CounterReadSeekCloser) Close() error

func (*CounterReadSeekCloser) Read

func (r *CounterReadSeekCloser) Read(p []byte) (n int, err error)

func (*CounterReadSeekCloser) Seek

func (r *CounterReadSeekCloser) Seek(offset int64, whence int) (int64, error)

type CounterReader

type CounterReader struct {
	Reader io.Reader

	BytesRead int
}

func (*CounterReader) Read

func (r *CounterReader) Read(p []byte) (n int, err error)

type CounterWriter

type CounterWriter struct {
	Writer io.Writer

	BytesRead int
}

func (*CounterWriter) Write

func (w *CounterWriter) Write(p []byte) (n int, err error)

type FlusherWriter

type FlusherWriter interface {
	io.WriteCloser

	Flush() error
}

type NopCloser

type NopCloser struct {
	io.Writer
}

func AddCloseNopToWriter

func AddCloseNopToWriter(w io.Writer) NopCloser

func (NopCloser) Close

func (NopCloser) Close() error

type NopFlusherWriter

type NopFlusherWriter struct {
	io.WriteCloser
}

func AddFlushNop

func AddFlushNop(w io.WriteCloser) NopFlusherWriter

func (NopFlusherWriter) Flush

func (NopFlusherWriter) Flush() error

Jump to

Keyboard shortcuts

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