PocketMine-MP 5.15.1 git-ed158f8a1b0cfe334ac5f45febc0f633602014f2
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 244 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 237 of file PacketPool.php.

◆ registerPacket()

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

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