chunk

package
v0.2.2-buildfails Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2015 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

package chunk implements streaming block splitters

Index

Constants

This section is empty.

Variables

View Source
var DefaultBlockSize = 1024 * 256
View Source
var DefaultSplitter = &SizeSplitter{Size: DefaultBlockSize}

Functions

This section is empty.

Types

type BlockSplitter

type BlockSplitter interface {
	Split(r io.Reader) chan []byte
}

type MaybeRabin

type MaybeRabin struct {
	MinBlockSize int
	MaxBlockSize int
	// contains filtered or unexported fields
}

func NewMaybeRabin

func NewMaybeRabin(avgBlkSize int) *MaybeRabin

func (*MaybeRabin) Split

func (mr *MaybeRabin) Split(r io.Reader) chan []byte

type SizeSplitter

type SizeSplitter struct {
	Size int
}

func (*SizeSplitter) Split

func (ss *SizeSplitter) Split(r io.Reader) chan []byte

Jump to

Keyboard shortcuts

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