data

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockResults added in v1.4.0

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

type FullReader

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

func NewFullReader

func NewFullReader(rdr io.ReaderAt, decomp decompress.Decompressor, blockSize uint32, size uint64, start uint64, sizes []uint32) FullReader

func (*FullReader) AddFragData added in v1.4.0

func (f *FullReader) AddFragData(blockStart uint64, blockSize uint32, offset uint32) error

func (FullReader) Block added in v1.4.0

func (f FullReader) Block(i uint32) ([]byte, error)

Returns the data block at the given index

func (FullReader) BlockNum added in v1.4.0

func (f FullReader) BlockNum() uint32

The number of blocks, including the fragment block if present

func (*FullReader) Close added in v1.2.0

func (f *FullReader) Close() error

func (*FullReader) SetDispatcherPool added in v1.4.0

func (f *FullReader) SetDispatcherPool(dispatcher chan struct{}, pool *sync.Pool)

func (FullReader) WriteTo

func (f FullReader) WriteTo(w io.Writer) (wrote int64, err error)

type Reader

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

func NewReader

func NewReader(f *FullReader) (Reader, error)

func (*Reader) Close

func (d *Reader) Close() error

func (*Reader) Read

func (d *Reader) Read(buf []byte) (int, error)

Jump to

Keyboard shortcuts

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