dhtbloomfilter

package module
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2020 License: GPL-3.0 Imports: 3 Imported by: 0

README

dhtbloomfilter

DHT BEP33 Bloom Filter golang implementation

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BloomFilter

type BloomFilter [bfSize]byte

BloomFilter sha1 base use in DHT get_peers response. BEP33

func (*BloomFilter) Dump

func (bf *BloomFilter) Dump() string

Dump bytes as HEX string

func (*BloomFilter) EstimatedSize

func (bf *BloomFilter) EstimatedSize() int

EstimatedSize Rounded integer, approximating the number of items in the filter.

func (*BloomFilter) Merge

func (bf *BloomFilter) Merge(filter BloomFilter)

Merge сombines two filters

func (*BloomFilter) UnmarshalBencode added in v1.0.2

func (bf *BloomFilter) UnmarshalBencode(b []byte) (err error)

UnmarshalBencode bencode unmarshaler

Jump to

Keyboard shortcuts

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