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) 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
Click to show internal directories.
Click to hide internal directories.