t

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockHoleReader

type BlockHoleReader interface {
	BlockReader
	BlockHoley
}

type BlockHoley

type BlockHoley interface {
	// Locate the index of the next existing block. If |off| is a valid
	// block, return |off|.
	// Returns err == io.EOF if there are no more blocks found.
	NextBlockData(off int64) (nextBlock int64, err error)

	// Locate the offset of the next hole.
	NextBlockHole(off int64) (nextHole int64, err error)
}

type BlockReadWriter

type BlockReadWriter interface {
	BlockReader
	BlockWriter
}

type BlockReader

type BlockReader interface {
	// Read a contiguous sequence of blocks, starting at |off|.
	// len(buf) MUST be a multiple of the block size.
	ReadBlocks(buf []byte, off int64) (blocksRead int, err error)
}

type BlockWriter

type BlockWriter interface {
	// Write a contiguous sequence of blocks, starting at |off|.
	// len(buf) MUST be a multiple of the block size.
	WriteBlocks(buf []byte, off int64) (blocksWritten int, err error)
}

type Flusher

type Flusher interface {
	Flush() error
}

type HoleReaderAt

type HoleReaderAt interface {
	io.ReaderAt
	Holey
}

type Holey

type Holey interface {
	NextData(off int64) (int64, error)
	NextHole(off int64) (int64, error)
}

type ReadWriterAt

type ReadWriterAt interface {
	io.ReaderAt
	io.WriterAt
}

Jump to

Keyboard shortcuts

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