PocketMine-MP 5.23.3 git-f7687af337d001ddbcc47b8e773f014a33faa662
Loading...
Searching...
No Matches
pocketmine\network\mcpe\protocol\PacketPool Class Reference
+ Collaboration diagram for pocketmine\network\mcpe\protocol\PacketPool:

Public Member Functions

 getPacket (string $buffer)
 
 getPacketById (int $pid)
 
 registerPacket (Packet $packet)
 

Static Public Member Functions

static getInstance ()
 

Protected Attributes

SplFixedArray $pool
 

Static Protected Attributes

static PacketPool $instance = null
 

Detailed Description

Definition at line 20 of file PacketPool.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\network\mcpe\protocol\PacketPool::__construct ( )

Definition at line 33 of file PacketPool.php.

Member Function Documentation

◆ getInstance()

static pocketmine\network\mcpe\protocol\PacketPool::getInstance ( )
static

Definition at line 23 of file PacketPool.php.

◆ getPacket()

pocketmine\network\mcpe\protocol\PacketPool::getPacket ( string $buffer)
Exceptions
BinaryDataException

Definition at line 254 of file PacketPool.php.

Referenced by pocketmine\network\mcpe\protocol\serializer\PacketBatch\decodePackets().

+ Here is the caller graph for this function:

◆ getPacketById()

pocketmine\network\mcpe\protocol\PacketPool::getPacketById ( int $pid)

Definition at line 247 of file PacketPool.php.

◆ registerPacket()

pocketmine\network\mcpe\protocol\PacketPool::registerPacket ( Packet $packet)

Definition at line 243 of file PacketPool.php.

Member Data Documentation

◆ $instance

PacketPool pocketmine\network\mcpe\protocol\PacketPool::$instance = null
staticprotected

Definition at line 21 of file PacketPool.php.

◆ $pool

SplFixedArray pocketmine\network\mcpe\protocol\PacketPool::$pool
protected

Definition at line 31 of file PacketPool.php.


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