bitschunks

package
v0.0.0-...-b1d3944 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2016 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SupportedChunkers = []string{"rabin"}

SupportedChunkers holds identifiers for all supported stores

Functions

func CreateChunkWriter

func CreateChunkWriter(ctype string, w io.Writer) (cw bits.ChunkWriter, err error)

CreateChunkWriter a store instance for any of the supported types

func CreateChunker

func CreateChunker(ctype string, secret bits.Secret, input io.Reader) (cr bits.ChunkReader, err error)

CreateChunker a store instance for any of the supported types

Types

type RabinChunker

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

RabinChunker is a chunker that uses a rolling rabin checksum

func NewRabinChunker

func NewRabinChunker(r io.Reader, pol chunker.Pol) *RabinChunker

NewRabinChunker creates a chunker that uses a rolling rabin checksum

func (*RabinChunker) Read

func (c *RabinChunker) Read() (chunk []byte, err error)

Next will return the next chunk for processing

Jump to

Keyboard shortcuts

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