Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockReader ¶
type BlockReader struct { ChunkSize uint64 // contains filtered or unexported fields }
func NewBlockReader ¶
func NewBlockReader(reader io.Reader, chunkSize uint64) *BlockReader
func (*BlockReader) Read ¶
func (br *BlockReader) Read(b []byte) (int, error)
This is for convenience
func (*BlockReader) ReadBlock ¶
func (br *BlockReader) ReadBlock() ([]byte, error)
func (*BlockReader) Realign ¶
func (br *BlockReader) Realign() error
type BlockWriter ¶
type BlockWriter struct {
// contains filtered or unexported fields
}
func NewBlockWriter ¶
func NewBlockWriter(destination io.Writer, blockSize uint64) *BlockWriter
func (*BlockWriter) Align ¶
func (k *BlockWriter) Align() error
func (*BlockWriter) Close ¶
func (k *BlockWriter) Close() error
func (*BlockWriter) Write ¶
func (k *BlockWriter) Write(p []byte) (n int, err error)
Writes bytes to the
func (*BlockWriter) WriteWhole ¶
func (k *BlockWriter) WriteWhole(p []byte) (n int, err error)
type BrotliWriter ¶
type BrotliWriter struct{}
type CompressWriter ¶
type CopyWriter ¶
type CopyWriter struct {
CompressWriter
}
type HashWriter ¶
type HashWriter struct {
// contains filtered or unexported fields
}
func NewHashWriter ¶
func NewHashWriter(dest io.Writer, hasher hash.Hash) *HashWriter
func (*HashWriter) Sum ¶
func (w *HashWriter) Sum() []byte
Click to show internal directories.
Click to hide internal directories.