PocketMine-MP 5.14.2 git-50e2c469a547a16a23b2dc691e70a51d34e29395
pocketmine\network\mcpe\protocol\serializer\PacketBatch Class Reference
+ Collaboration diagram for pocketmine\network\mcpe\protocol\serializer\PacketBatch:

Static Public Member Functions

static decodePackets (BinaryStream $stream, PacketPool $packetPool)
 
static decodeRaw (BinaryStream $stream)
 
static encodePackets (BinaryStream $stream, array $packets)
 
static encodeRaw (BinaryStream $stream, array $packets)
 

Detailed Description

Definition at line 24 of file PacketBatch.php.

Member Function Documentation

◆ decodePackets()

static pocketmine\network\mcpe\protocol\serializer\PacketBatch::decodePackets ( BinaryStream  $stream,
PacketPool  $packetPool 
)
staticfinal

@phpstan-return \Generator<int, Packet, void, void>

Exceptions
PacketDecodeException

Definition at line 63 of file PacketBatch.php.

References pocketmine\network\mcpe\protocol\PacketPool\getPacket().

+ Here is the call graph for this function:

◆ decodeRaw()

static pocketmine\network\mcpe\protocol\serializer\PacketBatch::decodeRaw ( BinaryStream  $stream)
staticfinal

@phpstan-return \Generator<int, string, void, void>

Exceptions
PacketDecodeException

Definition at line 34 of file PacketBatch.php.

References pocketmine\utils\BinaryStream\get(), and pocketmine\utils\BinaryStream\getUnsignedVarInt().

+ Here is the call graph for this function:

◆ encodePackets()

static pocketmine\network\mcpe\protocol\serializer\PacketBatch::encodePackets ( BinaryStream  $stream,
array  $packets 
)
staticfinal
Parameters
Packet[]$packets@phpstan-param list<Packet> $packets

Definition at line 85 of file PacketBatch.php.

References pocketmine\utils\BinaryStream\putUnsignedVarInt().

+ Here is the call graph for this function:

◆ encodeRaw()

static pocketmine\network\mcpe\protocol\serializer\PacketBatch::encodeRaw ( BinaryStream  $stream,
array  $packets 
)
staticfinal
Parameters
string[]$packets@phpstan-param list<string> $packets

Definition at line 52 of file PacketBatch.php.

References pocketmine\utils\BinaryStream\putUnsignedVarInt().

+ Here is the call graph for this function:

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