Class: AuthReplyPacket

net/packets~AuthReplyPacket

new AuthReplyPacket(signaturenullable)

Represents a authreply packet.

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

Methods

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

Instantiate authreply packet from serialized data.

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

(static) fromReader(br) → {AuthReplyPacket}

Instantiate authreply packet from buffer reader.

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

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

Source:
Returns:
Type
Buffer

toWriter(bw)

Serialize authreply packet to writer.

Parameters:
Name Type Description
bw BufferWriter
Source: