Class: InvPacket

net/packets~InvPacket(itemsnullable)

Inv Packet

Constructor

new InvPacket(itemsnullable)

Create a inv packet.

Parameters:
Name Type Attributes Description
items Array.<InvItem> <nullable>
Properties:
Name Type Description
items Array.<InvItem>
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 inv packet to writer.

Parameters:
Name Type Description
bw Buffer
Source: