PacketPool
in package
Table of Contents
- $instance : PacketPool|null
- $pool : SplFixedArray
- __construct() : mixed
- getInstance() : self
- getPacket() : Packet|null
- getPacketById() : Packet|null
- registerPacket() : void
Properties
$instance
protected
static PacketPool|null
$instance
= null
$pool
protected
SplFixedArray
$pool
Methods
__construct()
public
__construct() : mixed
Return values
mixed —getInstance()
public
static getInstance() : self
Return values
self —getPacket()
public
getPacket(string $buffer) : Packet|null
Parameters
- $buffer : string
Tags
Return values
Packet|null —getPacketById()
public
getPacketById(int $pid) : Packet|null
Parameters
- $pid : int
Return values
Packet|null —registerPacket()
public
registerPacket(Packet $packet) : void
Parameters
- $packet : Packet