Documentation ¶
Overview ¶
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 ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RollSum ¶
type RollSum struct {
// contains filtered or unexported fields
}
func (*RollSum) OnSplit ¶
OnSplit returns whether at least 13 consecutive trailing bits of the current checksum are set the same way.
func (*RollSum) OnSplitWithBits ¶
OnSplit returns whether at least n consecutive trailing bits of the current checksum are set the same way.
Click to show internal directories.
Click to hide internal directories.