Class: FilterLoadPacket

net/packets~FilterLoadPacket(filter)

FilterLoad Packet

Constructor

new FilterLoadPacket(filter)

Create a filterload packet.

Parameters:
Name Type Description
filter BloomFilter | null
Source:

Extends

  • Packet

Methods

getSize() → {Number}

Get serialization size.

Source:
Returns:
Type
Number

isWithinConstraints() → {Boolean}

Ensure the filter is within the size limits.

Source:
Returns:
Type
Boolean

read(br)

Inject properties from buffer reader.

Parameters:
Name Type Description
br bio.BufferReader
Source:

write(bw)

Serialize filterload packet to writer.

Parameters:
Name Type Description
bw BufioWriter
Source: