Class: SendCmpctPacket

net/packets~SendCmpctPacket(mode, version)

SendCmpct Packet

Constructor

new SendCmpctPacket(mode, version)

Create a sendcmpct packet.

Parameters:
Name Type Description
mode Number | null
version Number | null
Properties:
Name Type Description
mode Number
version Number
Source:

Extends

  • Packet

Methods

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

Instantiate sendcmpct packet from serialized data.

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

(static) fromReader(br) → {SendCmpctPacket}

Instantiate sendcmpct packet from buffer reader.

Parameters:
Name Type Description
br BufferReader
Source:
Returns:
Type
SendCmpctPacket

(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 sendcmpct packet.

Source:
Returns:
Type
Buffer

toWriter(bw)

Serialize sendcmpct packet to writer.

Parameters:
Name Type Description
bw BufferWriter
Source: