iblt

package module
v0.0.0-...-78c7af8 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Diff

type Diff struct {
	Added   [][]byte
	Removed [][]byte
}

type Filter

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

Filter is totally NOT thread-safe!

func New

func New(k, l int) *Filter

New constructs a new Filter.

func NewFromNumItems

func NewFromNumItems(numItems int) *Filter

func (*Filter) Add

func (f *Filter) Add(b []byte)

func (*Filter) Clone

func (f *Filter) Clone() *Filter

func (*Filter) Decode

func (f *Filter) Decode() (*Diff, error)

Decode is distructive! One can apply the diff produced (even in case of error) to restore the previous state.

func (Filter) Diff

func (f Filter) Diff(other Filter, diff *Filter) error

func (Filter) K

func (f Filter) K() int

func (Filter) MarshalBinary

func (f Filter) MarshalBinary() (data []byte, err error)

func (Filter) N

func (f Filter) N() int

func (*Filter) Remove

func (f *Filter) Remove(b []byte)

func (*Filter) Sub

func (f *Filter) Sub(other Filter) error

Inplace

func (*Filter) UnmarshalBinary

func (f *Filter) UnmarshalBinary(data []byte) error

type IbltParam

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

Jump to

Keyboard shortcuts

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