mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-21 18:36:40 +00:00
PacketPool: add @throws
This commit is contained in:
parent
4a35516441
commit
64506ea3ae
@ -24,6 +24,7 @@ declare(strict_types=1);
|
|||||||
namespace pocketmine\network\mcpe\protocol;
|
namespace pocketmine\network\mcpe\protocol;
|
||||||
|
|
||||||
use pocketmine\utils\Binary;
|
use pocketmine\utils\Binary;
|
||||||
|
use pocketmine\utils\BinaryDataException;
|
||||||
|
|
||||||
class PacketPool{
|
class PacketPool{
|
||||||
/** @var \SplFixedArray<DataPacket> */
|
/** @var \SplFixedArray<DataPacket> */
|
||||||
@ -179,6 +180,7 @@ class PacketPool{
|
|||||||
* @param string $buffer
|
* @param string $buffer
|
||||||
*
|
*
|
||||||
* @return DataPacket
|
* @return DataPacket
|
||||||
|
* @throws BinaryDataException
|
||||||
*/
|
*/
|
||||||
public static function getPacket(string $buffer) : DataPacket{
|
public static function getPacket(string $buffer) : DataPacket{
|
||||||
$offset = 0;
|
$offset = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user