PocketMine-MP 5.21.2 git-b2aa6396c3cc2cafdd815eacc360e1ad89599899
Loading...
Searching...
No Matches
raklib\protocol\Packet Class Reference
+ Inheritance diagram for raklib\protocol\Packet:
+ Collaboration diagram for raklib\protocol\Packet:

Public Member Functions

 decode (PacketSerializer $in)
 
 encode (PacketSerializer $out)
 

Static Public Attributes

static $ID = -1
 

Protected Member Functions

 decodeHeader (PacketSerializer $in)
 
 decodePayload (PacketSerializer $in)
 
 encodeHeader (PacketSerializer $out)
 
 encodePayload (PacketSerializer $out)
 

Detailed Description

Definition at line 21 of file raklib/src/protocol/Packet.php.

Member Function Documentation

◆ decode()

raklib\protocol\Packet::decode ( PacketSerializer $in)
Exceptions
BinaryDataException

Definition at line 39 of file raklib/src/protocol/Packet.php.

◆ decodeHeader()

raklib\protocol\Packet::decodeHeader ( PacketSerializer $in)
protected
Exceptions
BinaryDataException

Reimplemented in raklib\protocol\Datagram.

Definition at line 47 of file raklib/src/protocol/Packet.php.

◆ decodePayload()

◆ encode()

raklib\protocol\Packet::encode ( PacketSerializer $out)

Definition at line 25 of file raklib/src/protocol/Packet.php.

◆ encodeHeader()

raklib\protocol\Packet::encodeHeader ( PacketSerializer $out)
protected

Definition at line 30 of file raklib/src/protocol/Packet.php.

Member Data Documentation

◆ $ID

raklib\protocol\Packet::$ID = -1
static

Definition at line 23 of file raklib/src/protocol/Packet.php.


The documentation for this class was generated from the following file: