Class: UnknownPacket

net/packets~UnknownPacket(typeopt, nullable, dataopt, nullable)

Unknown Packet

Constructor

new UnknownPacket(typeopt, nullable, dataopt, nullable)

Create an unknown packet.

Parameters:
Name Type Attributes Description
type Number <optional>
<nullable>
data Buffer <optional>
<nullable>
Properties:
Name Type Description
cmd String
data Buffer
Source:

Extends

  • Packet

Methods

getSize() → {Number}

Get serialization size.

Source:
Returns:
Type
Number

read(br, type)

Inject properties from serialized data.

Parameters:
Name Type Description
br bio.BufferReader
type Number
Source:

write(bw)

Serialize unknown packet to writer.

Parameters:
Name Type Description
bw BufioWriter
Source: