adaptor

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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewReadWriter

func NewReadWriter(brw t.BlockReadWriter, blockSize int) t.ReadWriterAt

Types

type BlockReadWriter

type BlockReadWriter struct {
	BlockReader
	// contains filtered or unexported fields
}

func NewBlockReadWriter

func NewBlockReadWriter(rw HoleReadWriterAt, blockSize int) *BlockReadWriter

func (*BlockReadWriter) WriteBlocks

func (w *BlockReadWriter) WriteBlocks(buf []byte, off int64) (int, error)

type BlockReader

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

func NewBlockReader

func NewBlockReader(r t.HoleReaderAt, blockSize int) *BlockReader

func (*BlockReader) NextBlockData

func (r *BlockReader) NextBlockData(off int64) (int64, error)

func (*BlockReader) NextBlockHole

func (r *BlockReader) NextBlockHole(off int64) (int64, error)

func (*BlockReader) ReadBlocks

func (r *BlockReader) ReadBlocks(buf []byte, off int64) (int, error)

type HoleReadWriterAt

type HoleReadWriterAt interface {
	t.HoleReaderAt
	io.WriterAt
}

type HoleReader

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

func NewHoleReader

func NewHoleReader(br t.BlockHoleReader, blockSize int) *HoleReader

func (*HoleReader) NextData

func (a *HoleReader) NextData(off int64) (int64, error)

func (*HoleReader) NextHole

func (a *HoleReader) NextHole(off int64) (int64, error)

type Reader

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

func NewReader

func NewReader(br t.BlockReader, blockSize int) *Reader

func (*Reader) ReadAt

func (a *Reader) ReadAt(b []byte, off int64) (int, error)

Jump to

Keyboard shortcuts

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