blockmap

package
v0.0.0-...-b92c3bc Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2024 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reader

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

func NewReader

func NewReader(blockSize int, numBlocks int64) *Reader

func (*Reader) GetLiveBlocks

func (r *Reader) GetLiveBlocks() map[t.BlockHoleReader]int64

func (*Reader) ListReaders

func (r *Reader) ListReaders() []t.BlockHoleReader

func (*Reader) LiveBlocks

func (r *Reader) LiveBlocks() int64

func (*Reader) NextBlockData

func (r *Reader) NextBlockData(off int64) (nextBlock int64, err error)

func (*Reader) NextBlockHole

func (r *Reader) NextBlockHole(off int64) (nextHole int64, err error)

func (*Reader) PushReader

func (r *Reader) PushReader(br t.BlockHoleReader)

func (*Reader) ReadBlocks

func (r *Reader) ReadBlocks(b []byte, off int64) (int, error)

func (*Reader) ReaderForLiveBytes

func (r *Reader) ReaderForLiveBytes(rs []t.BlockHoleReader) *Reader

func (*Reader) RemoveTable

func (r *Reader) RemoveTable(br t.BlockHoleReader)

Jump to

Keyboard shortcuts

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