PocketMine-MP 5.15.1 git-5ef247620a7c6301a849b54e5ef1009217729fc8
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: