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
Click to show internal directories.
Click to hide internal directories.