Class: FilterAddPacket

net/packets~FilterAddPacket(datanullable)

FilterAdd Packet

Constructor

new FilterAddPacket(datanullable)

Create a filteradd packet.

Parameters:
Name Type Attributes Description
data Buffer <nullable>
Properties:
Name Type Description
data Buffer
Source:

Extends

  • Packet

Methods

(static) fromRaw(data, encnullable) → {FilterAddPacket}

Instantiate filteradd packet from serialized data.

Parameters:
Name Type Attributes Description
data Buffer
enc String <nullable>
Source:
Returns:
Type
FilterAddPacket

(private) fromRaw(data)

Inject properties from serialized data.

Parameters:
Name Type Description
data Buffer
Source:

(private) fromReader(br)

Inject properties from buffer reader.

Parameters:
Name Type Description
br BufferReader
Source:

getSize() → {Number}

Get serialization size.

Source:
Returns:
Type
Number

toRaw() → {Buffer}

Serialize filteradd packet.

Source:
Returns:
Type
Buffer

toWriter() → {BufferWriter}

Serialize filteradd packet to writer.

Source:
Returns:

bw

Type
BufferWriter