bitset

package
v0.0.0-...-4687d0b Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package bitset implements a bitset based on the bitset library.

It aggregates a hashfunction and implements the Add, Check and Union methods.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BitSet

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

BitSet type cotains library bitset and hasher function

func NewBitSet

func NewBitSet(m uint) *BitSet

NewBitSet constructor for BitSet with an array of m bits

func (*BitSet) Add

func (bs *BitSet) Add(elem []byte)

Add element to bitset

func (*BitSet) Check

func (bs *BitSet) Check(elem []byte) bool

Check element in bitset

func (*BitSet) Union

func (bs *BitSet) Union(that interface{}) (float64, error)

Union of two bitsets

Jump to

Keyboard shortcuts

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