Pacote
Preparing search index...
@pacote/bloom-filter
BloomFilter
Class BloomFilter<T>
Type Parameters
T
extends
{
toString
()
:
string
}
Index
Constructors
constructor
Properties
filter
hashes
seed
size
Methods
add
has
toJSON
Constructors
constructor
new
BloomFilter
<
T
extends
{
toString
()
:
string
}
>
(
options
:
Options
,
)
:
BloomFilter
<
T
>
Type Parameters
T
extends
{
toString
()
:
string
}
Parameters
options
:
Options
Returns
BloomFilter
<
T
>
Properties
Readonly
filter
filter
:
Uint32Array
Readonly
hashes
hashes
:
number
Readonly
seed
seed
:
number
Readonly
size
size
:
number
Methods
add
add
(
element
:
T
)
:
void
Parameters
element
:
T
Returns
void
has
has
(
element
:
T
)
:
boolean
Parameters
element
:
T
Returns
boolean
toJSON
toJSON
()
:
SerialisedBloomFilter
Returns
SerialisedBloomFilter
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
filter
hashes
seed
size
Methods
add
has
toJSON
Pacote
Loading...