toreader

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OffsetReader added in v0.7.2

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

func NewOffsetReader added in v0.7.2

func NewOffsetReader(r io.ReaderAt, off int64) *OffsetReader

func (OffsetReader) ReadAt added in v0.7.2

func (r OffsetReader) ReadAt(p []byte, off int64) (n int, e error)

type Reader

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

func NewReader

func NewReader(r io.ReaderAt, start int64) *Reader

func (Reader) Offset

func (r Reader) Offset() int64

func (*Reader) Read

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

type ReaderAt

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

func NewReaderAt

func NewReaderAt(r io.Reader) (ra *ReaderAt, err error)

func (ReaderAt) ReadAt

func (r ReaderAt) ReadAt(p []byte, off int64) (n int, err error)

Jump to

Keyboard shortcuts

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