PocketMine-MP 5.21.1 git-2ff647079265e7c600203af4fd902b15e99d49a4
|
Public Member Functions | |
feof () | |
get (int $len) | |
getAddress () | |
getBool () | |
getBuffer () | |
getByte () | |
getDouble () | |
getFloat () | |
getInt () | |
getLDouble () | |
getLFloat () | |
getLInt () | |
getLLong () | |
getLong () | |
getLShort () | |
getLTriad () | |
getOffset () | |
getRemaining () | |
getRoundedFloat (int $accuracy) | |
getRoundedLFloat (int $accuracy) | |
getShort () | |
getSignedLShort () | |
getSignedShort () | |
getString () | |
getTriad () | |
getUnsignedVarInt () | |
getUnsignedVarLong () | |
getVarInt () | |
getVarLong () | |
put (string $str) | |
putAddress (InternetAddress $address) | |
putBool (bool $v) | |
putByte (int $v) | |
putDouble (float $v) | |
putFloat (float $v) | |
putInt (int $v) | |
putLDouble (float $v) | |
putLFloat (float $v) | |
putLInt (int $v) | |
putLLong (int $v) | |
putLong (int $v) | |
putLShort (int $v) | |
putLTriad (int $v) | |
putShort (int $v) | |
putString (string $v) | |
putTriad (int $v) | |
putUnsignedVarInt (int $v) | |
putUnsignedVarLong (int $v) | |
putVarInt (int $v) | |
putVarLong (int $v) | |
rewind () | |
setOffset (int $offset) | |
Protected Attributes | |
$buffer | |
$offset | |
Definition at line 30 of file raklib/src/protocol/PacketSerializer.php.
|
inherited |
Returns whether the offset has reached the end of the buffer.
Definition at line 372 of file BinaryStream.php.
|
inherited |
@phpstan-impure
BinaryDataException | if there are not enough bytes left in the buffer |
Definition at line 67 of file BinaryStream.php.
Referenced by pocketmine\network\mcpe\protocol\serializer\PacketBatch\decodeRaw(), pocketmine\world\format\io\leveldb\LevelDB\deserializeBlockPalette(), and raklib\protocol\OfflineMessage\readMagic().
raklib\protocol\PacketSerializer::getAddress | ( | ) |
BinaryDataException |
Definition at line 42 of file raklib/src/protocol/PacketSerializer.php.
|
inherited |
@phpstan-impure
BinaryDataException |
Definition at line 105 of file BinaryStream.php.
Referenced by pocketmine\network\mcpe\protocol\CommandBlockUpdatePacket\decodePayload(), and pocketmine\network\mcpe\protocol\PlayerListPacket\decodePayload().
|
inherited |
Definition at line 59 of file BinaryStream.php.
|
inherited |
@phpstan-impure
BinaryDataException |
Definition at line 117 of file BinaryStream.php.
Referenced by pocketmine\network\mcpe\protocol\BookEditPacket\decodePayload(), pocketmine\network\mcpe\protocol\SetHudPacket\decodePayload(), pocketmine\network\mcpe\protocol\SetScorePacket\decodePayload(), raklib\protocol\AcknowledgePacket\decodePayload(), and pocketmine\network\mcpe\protocol\AvailableCommandsPacket\getEnumValueIndex().
|
inherited |
|
inherited |
@phpstan-impure
BinaryDataException |
Definition at line 217 of file BinaryStream.php.
Referenced by pocketmine\network\mcpe\protocol\CorrectPlayerMovePredictionPacket\decodePayload().
|
inherited |
|
inherited |
|
inherited |
@phpstan-impure
BinaryDataException |
Definition at line 237 of file BinaryStream.php.
Referenced by pocketmine\network\mcpe\protocol\AddActorPacket\decodePayload(), pocketmine\network\mcpe\protocol\AnimatePacket\decodePayload(), pocketmine\network\mcpe\protocol\BossEventPacket\decodePayload(), pocketmine\network\mcpe\protocol\ClientboundDebugRendererPacket\decodePayload(), and pocketmine\network\mcpe\protocol\InteractPacket\decodePayload().
|
inherited |
@phpstan-impure
BinaryDataException |
Definition at line 205 of file BinaryStream.php.
Referenced by pocketmine\network\mcpe\protocol\MovePlayerPacket\decodePayload(), pocketmine\network\mcpe\protocol\PlayerListPacket\decodePayload(), and pocketmine\network\mcpe\protocol\SetScorePacket\decodePayload().
|
inherited |
@phpstan-impure
BinaryDataException |
Definition at line 293 of file BinaryStream.php.
Referenced by pocketmine\network\mcpe\protocol\ClientboundDebugRendererPacket\decodePayload(), pocketmine\network\mcpe\protocol\ClientCacheBlobStatusPacket\decodePayload(), and pocketmine\network\mcpe\protocol\ClientCacheMissResponsePacket\decodePayload().
|
inherited |
|
inherited |
@phpstan-impure
BinaryDataException |
Definition at line 149 of file BinaryStream.php.
Referenced by pocketmine\network\mcpe\protocol\BossEventPacket\decodePayload(), and pocketmine\network\mcpe\protocol\AvailableCommandsPacket\getCommandData().
|
inherited |
@phpstan-impure
BinaryDataException |
Definition at line 181 of file BinaryStream.php.
Referenced by raklib\protocol\AcknowledgePacket\decodePayload().
|
inherited |
Definition at line 55 of file BinaryStream.php.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
raklib\protocol\PacketSerializer::getString | ( | ) |
BinaryDataException |
Definition at line 35 of file raklib/src/protocol/PacketSerializer.php.
|
inherited |
|
inherited |
Reads a 32-bit variable-length unsigned integer from the buffer and returns it.
@phpstan-impure
BinaryDataException |
Definition at line 307 of file BinaryStream.php.
Referenced by pocketmine\network\mcpe\protocol\BossEventPacket\decodePayload(), pocketmine\network\mcpe\protocol\ClientboundMapItemDataPacket\decodePayload(), pocketmine\network\mcpe\protocol\CommandBlockUpdatePacket\decodePayload(), pocketmine\network\mcpe\protocol\InventoryTransactionPacket\decodePayload(), pocketmine\network\mcpe\protocol\TextPacket\decodePayload(), pocketmine\network\mcpe\protocol\serializer\PacketBatch\decodeRaw(), and pocketmine\network\mcpe\protocol\types\inventory\NetworkInventoryAction\read().
|
inherited |
Reads a 64-bit variable-length integer from the buffer and returns it.
@phpstan-impure
BinaryDataException |
Definition at line 341 of file BinaryStream.php.
|
inherited |
Reads a 32-bit zigzag-encoded variable-length integer from the buffer and returns it.
@phpstan-impure
BinaryDataException |
Definition at line 324 of file BinaryStream.php.
Referenced by pocketmine\network\mcpe\protocol\CraftingDataPacket\decodePayload(), and pocketmine\network\mcpe\protocol\types\inventory\NetworkInventoryAction\read().
|
inherited |
Reads a 64-bit zigzag-encoded variable-length integer from the buffer and returns it.
@phpstan-impure
BinaryDataException |
Definition at line 358 of file BinaryStream.php.
Referenced by pocketmine\network\mcpe\protocol\SetScoreboardIdentityPacket\decodePayload(), and pocketmine\network\mcpe\protocol\SetScorePacket\decodePayload().
|
inherited |
Definition at line 97 of file BinaryStream.php.
raklib\protocol\PacketSerializer::putAddress | ( | InternetAddress | $address | ) |
Definition at line 69 of file raklib/src/protocol/PacketSerializer.php.
|
inherited |
Definition at line 109 of file BinaryStream.php.
|
inherited |
Definition at line 121 of file BinaryStream.php.
|
inherited |
Definition at line 261 of file BinaryStream.php.
|
inherited |
Definition at line 229 of file BinaryStream.php.
|
inherited |
Definition at line 197 of file BinaryStream.php.
|
inherited |
Definition at line 273 of file BinaryStream.php.
|
inherited |
Definition at line 249 of file BinaryStream.php.
|
inherited |
Definition at line 209 of file BinaryStream.php.
|
inherited |
Definition at line 297 of file BinaryStream.php.
|
inherited |
Definition at line 285 of file BinaryStream.php.
|
inherited |
Definition at line 161 of file BinaryStream.php.
|
inherited |
Definition at line 185 of file BinaryStream.php.
|
inherited |
Definition at line 141 of file BinaryStream.php.
raklib\protocol\PacketSerializer::putString | ( | string | $v | ) |
Definition at line 64 of file raklib/src/protocol/PacketSerializer.php.
|
inherited |
Definition at line 173 of file BinaryStream.php.
|
inherited |
Writes a 32-bit variable-length unsigned integer to the end of the buffer.
Definition at line 314 of file BinaryStream.php.
Referenced by pocketmine\network\mcpe\protocol\serializer\PacketBatch\encodePackets(), pocketmine\network\mcpe\protocol\BossEventPacket\encodePayload(), pocketmine\network\mcpe\protocol\CommandBlockUpdatePacket\encodePayload(), pocketmine\network\mcpe\protocol\InventoryTransactionPacket\encodePayload(), pocketmine\network\mcpe\protocol\LevelChunkPacket\encodePayload(), pocketmine\network\mcpe\protocol\TextPacket\encodePayload(), pocketmine\network\mcpe\protocol\serializer\PacketBatch\encodeRaw(), and pocketmine\network\mcpe\protocol\types\inventory\NetworkInventoryAction\write().
|
inherited |
Writes a 64-bit variable-length integer to the end of the buffer.
Definition at line 348 of file BinaryStream.php.
|
inherited |
Writes a 32-bit zigzag-encoded variable-length integer to the end of the buffer.
Definition at line 331 of file BinaryStream.php.
Referenced by pocketmine\network\mcpe\protocol\CraftingDataPacket\encodePayload(), and pocketmine\network\mcpe\protocol\types\inventory\NetworkInventoryAction\write().
|
inherited |
Writes a 64-bit zigzag-encoded variable-length integer to the end of the buffer.
Definition at line 365 of file BinaryStream.php.
Referenced by pocketmine\network\mcpe\protocol\SetScoreboardIdentityPacket\encodePayload(), and pocketmine\network\mcpe\protocol\SetScorePacket\encodePayload().
|
inherited |
Rewinds the stream pointer to the start.
Definition at line 47 of file BinaryStream.php.
|
inherited |
Definition at line 51 of file BinaryStream.php.
|
protectedinherited |
Definition at line 37 of file BinaryStream.php.
|
protectedinherited |
Definition at line 35 of file BinaryStream.php.