arcreader

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewUnmarshaler

func NewUnmarshaler(opts ...gowarc.WarcRecordOption) gowarc.Unmarshaler

Types

type ArcFileReader

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

func NewArcFileReader

func NewArcFileReader(filename string, offset int64, opts ...gowarc.WarcRecordOption) (*ArcFileReader, error)

func (*ArcFileReader) Close

func (wf *ArcFileReader) Close() error

func (*ArcFileReader) Next

type CountingReader

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

CountingReader counts the bytes read through it.

func NewCountingReader

func NewCountingReader(r io.Reader) *CountingReader

NewCountingReader makes a new CountingReader that counts the bytes read through it.

func NewLimitedCountingReader

func NewLimitedCountingReader(r io.Reader, maxBytes int64) *CountingReader

NewLimitedCountingReader makes a new CountingReader that counts the bytes read through it.

When maxBytes bytes are read, the next read will return io.EOF even though the underlying reader has more data.

func (*CountingReader) N

func (r *CountingReader) N() int64

N gets the number of bytes that have been read so far.

func (*CountingReader) Read

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

Jump to

Keyboard shortcuts

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