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
Members
items :Array.<InvItem>
Type:
- Array.<InvItem>
- Source:
Methods
getSize() → {Number}
Get serialization size.
- Source:
Returns:
- Type
- Number
read(br)
Inject properties from buffer reader.
Parameters:
Name | Type | Description |
---|---|---|
br |
bio.BufferReader |
- Source:
write(bw) → {BufioWriter}
Serialize inv packet to writer.
Parameters:
Name | Type | Description |
---|---|---|
bw |
BufioWriter |
- Source:
Returns:
- Type
- BufioWriter