PocketMine-MP 5.21.1 git-2ff647079265e7c600203af4fd902b15e99d49a4
raklib\protocol\OfflineMessage Class Reference
+ Inheritance diagram for raklib\protocol\OfflineMessage:
+ Collaboration diagram for raklib\protocol\OfflineMessage:

Public Member Functions

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

Static Public Attributes

static $ID = -1
 

Protected Member Functions

 decodeHeader (PacketSerializer $in)
 
 decodePayload (PacketSerializer $in)
 
 encodeHeader (PacketSerializer $out)
 
 encodePayload (PacketSerializer $out)
 
 readMagic (BinaryStream $in)
 
 writeMagic (BinaryStream $out)
 

Protected Attributes

string $magic = self::MAGIC
 

Detailed Description

Definition at line 22 of file OfflineMessage.php.

Member Function Documentation

◆ decode()

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

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

◆ decodeHeader()

raklib\protocol\Packet::decodeHeader ( PacketSerializer  $in)
protectedinherited
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)
inherited

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

◆ encodeHeader()

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

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

◆ isValid()

raklib\protocol\OfflineMessage::isValid ( )

Definition at line 46 of file OfflineMessage.php.

◆ readMagic()

raklib\protocol\OfflineMessage::readMagic ( BinaryStream  $in)
protected
Returns
void
Exceptions
BinaryDataException

Definition at line 35 of file OfflineMessage.php.

References pocketmine\utils\BinaryStream\get().

+ Here is the call graph for this function:

◆ writeMagic()

raklib\protocol\OfflineMessage::writeMagic ( BinaryStream  $out)
protected
Returns
void

Definition at line 42 of file OfflineMessage.php.

Member Data Documentation

◆ $ID

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

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

◆ $magic

string raklib\protocol\OfflineMessage::$magic = self::MAGIC
protected

Definition at line 29 of file OfflineMessage.php.


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