camlistore.org: camlistore.org/pkg/rollsum Index | Files

package rollsum

import "camlistore.org/pkg/rollsum"

Package rollsum implements rolling checksums similar to apenwarr's bup, which is similar to librsync.

The bup project is at https://github.com/apenwarr/bup and its splitting in particular is at https://github.com/apenwarr/bup/blob/master/lib/bup/bupsplit.c

Index

Package Files

rollsum.go

type RollSum Uses

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

func New Uses

func New() *RollSum

func (*RollSum) Bits Uses

func (rs *RollSum) Bits() int

func (*RollSum) Digest Uses

func (rs *RollSum) Digest() uint32

func (*RollSum) OnSplit Uses

func (rs *RollSum) OnSplit() bool

OnSplit returns whether at least 13 consecutive trailing bits of the current checksum are set the same way.

func (*RollSum) OnSplitWithBits Uses

func (rs *RollSum) OnSplitWithBits(n uint32) bool

OnSplit returns whether at least n consecutive trailing bits of the current checksum are set the same way.

func (*RollSum) Roll Uses

func (rs *RollSum) Roll(ch byte)

Package rollsum is imported by 68 packages. Updated 2018-01-15. Refresh now. Tools for package owners.