readers

package
v3.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsReaderSeekable

func IsReaderSeekable(r io.Reader) bool

Types

type ReadSeekerNopClose

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

func ReadSeekNopCloser

func ReadSeekNopCloser(r io.Reader) ReadSeekerNopClose

func (ReadSeekerNopClose) Close

func (r ReadSeekerNopClose) Close() error

func (ReadSeekerNopClose) GetLen

func (r ReadSeekerNopClose) GetLen() (int64, error)

func (ReadSeekerNopClose) HasLen

func (r ReadSeekerNopClose) HasLen() (int, bool)

func (ReadSeekerNopClose) IsSeeker

func (r ReadSeekerNopClose) IsSeeker() bool

func (ReadSeekerNopClose) Read

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

func (ReadSeekerNopClose) Seek

func (r ReadSeekerNopClose) Seek(offset int64, whence int) (int64, error)

type RepeatableReader

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

func NewRepeatableLimitReader

func NewRepeatableLimitReader(r io.Reader, size int) *RepeatableReader

func NewRepeatableReader

func NewRepeatableReader(r io.Reader) *RepeatableReader

func NewRepeatableReaderBuffer

func NewRepeatableReaderBuffer(r io.Reader, buf []byte) *RepeatableReader

func NewRepeatableReaderSized

func NewRepeatableReaderSized(r io.Reader, size int) *RepeatableReader

func (*RepeatableReader) Read

func (r *RepeatableReader) Read(b []byte) (n int, err error)

func (*RepeatableReader) Seek

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

Jump to

Keyboard shortcuts

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