Class: HeadersPacket

net/packets~HeadersPacket(itemsnullable)

Headers Packet

Constructor

new HeadersPacket(itemsnullable)

Create a headers packet.

Parameters:
Name Type Attributes Description
items Array.<Headers> <nullable>
Properties:
Name Type Description
items Array.<Headers>
Source:

Extends

  • Packet

Methods

getSize() → {Number}

Get serialization size.

Source:
Returns:
Type
Number

(private) read(br)

Inject properties from buffer reader.

Parameters:
Name Type Description
br BufferReader
Source:

write(bw)

Serialize headers packet to writer.

Parameters:
Name Type Description
bw BufferWriter
Source: