PocketMine-MP 5.21.2 git-b2aa6396c3cc2cafdd815eacc360e1ad89599899
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 253 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 246 of file PacketPool.php.

◆ registerPacket()

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

Definition at line 242 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: