PocketMine-MP 5.23.3 git-f7687af337d001ddbcc47b8e773f014a33faa662
|
Public Member Functions | |
__construct (string $buffer="", int $offset=0) | |
feof () | |
get (int $len) | |
getBool () | |
getBuffer () | |
getByte () | |
getDouble () | |
getFloat () | |
getInt () | |
getLDouble () | |
getLFloat () | |
getLInt () | |
getLLong () | |
getLong () | |
getLShort () | |
getLTriad () | |
getOffset () | |
getRemaining () | |
getRoundedFloat (int $accuracy) | |
getRoundedLFloat (int $accuracy) | |
getShort () | |
getSignedLShort () | |
getSignedShort () | |
getTriad () | |
getUnsignedVarInt () | |
getUnsignedVarLong () | |
getVarInt () | |
getVarLong () | |
put (string $str) | |
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) | |
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 31 of file BinaryStream.php.
pocketmine\utils\BinaryStream::__construct | ( | string | $buffer = "", |
int | $offset = 0 ) |
Definition at line 39 of file BinaryStream.php.
pocketmine\utils\BinaryStream::feof | ( | ) |
Returns whether the offset has reached the end of the buffer.
Definition at line 372 of file BinaryStream.php.
pocketmine\utils\BinaryStream::get | ( | int | $len | ) |
@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().
pocketmine\utils\BinaryStream::getBool | ( | ) |
@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().
pocketmine\utils\BinaryStream::getBuffer | ( | ) |
Definition at line 59 of file BinaryStream.php.
pocketmine\utils\BinaryStream::getByte | ( | ) |
@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(), raklib\protocol\AcknowledgePacket\decodePayload(), and pocketmine\network\mcpe\protocol\AvailableCommandsPacket\getEnumValueIndex().
pocketmine\utils\BinaryStream::getDouble | ( | ) |
pocketmine\utils\BinaryStream::getFloat | ( | ) |
@phpstan-impure
BinaryDataException |
Definition at line 217 of file BinaryStream.php.
Referenced by pocketmine\network\mcpe\protocol\CorrectPlayerMovePredictionPacket\decodePayload().
pocketmine\utils\BinaryStream::getInt | ( | ) |
pocketmine\utils\BinaryStream::getLDouble | ( | ) |
pocketmine\utils\BinaryStream::getLFloat | ( | ) |
@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().
pocketmine\utils\BinaryStream::getLInt | ( | ) |
@phpstan-impure
BinaryDataException |
Definition at line 205 of file BinaryStream.php.
Referenced by pocketmine\network\mcpe\protocol\MovePlayerPacket\decodePayload(), and pocketmine\network\mcpe\protocol\PlayerListPacket\decodePayload().
pocketmine\utils\BinaryStream::getLLong | ( | ) |
@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().
pocketmine\utils\BinaryStream::getLong | ( | ) |
pocketmine\utils\BinaryStream::getLShort | ( | ) |
@phpstan-impure
BinaryDataException |
Definition at line 149 of file BinaryStream.php.
Referenced by pocketmine\network\mcpe\protocol\BossEventPacket\decodePayload().
pocketmine\utils\BinaryStream::getLTriad | ( | ) |
@phpstan-impure
BinaryDataException |
Definition at line 181 of file BinaryStream.php.
Referenced by raklib\protocol\AcknowledgePacket\decodePayload().
pocketmine\utils\BinaryStream::getOffset | ( | ) |
Definition at line 55 of file BinaryStream.php.
pocketmine\utils\BinaryStream::getRemaining | ( | ) |
pocketmine\utils\BinaryStream::getRoundedFloat | ( | int | $accuracy | ) |
pocketmine\utils\BinaryStream::getRoundedLFloat | ( | int | $accuracy | ) |
pocketmine\utils\BinaryStream::getShort | ( | ) |
pocketmine\utils\BinaryStream::getSignedLShort | ( | ) |
pocketmine\utils\BinaryStream::getSignedShort | ( | ) |
pocketmine\utils\BinaryStream::getTriad | ( | ) |
pocketmine\utils\BinaryStream::getUnsignedVarInt | ( | ) |
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().
pocketmine\utils\BinaryStream::getUnsignedVarLong | ( | ) |
Reads a 64-bit variable-length integer from the buffer and returns it.
@phpstan-impure
BinaryDataException |
Definition at line 341 of file BinaryStream.php.
pocketmine\utils\BinaryStream::getVarInt | ( | ) |
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().
pocketmine\utils\BinaryStream::getVarLong | ( | ) |
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.
pocketmine\utils\BinaryStream::put | ( | string | $str | ) |
Definition at line 97 of file BinaryStream.php.
pocketmine\utils\BinaryStream::putBool | ( | bool | $v | ) |
Definition at line 109 of file BinaryStream.php.
pocketmine\utils\BinaryStream::putByte | ( | int | $v | ) |
Definition at line 121 of file BinaryStream.php.
pocketmine\utils\BinaryStream::putDouble | ( | float | $v | ) |
Definition at line 261 of file BinaryStream.php.
pocketmine\utils\BinaryStream::putFloat | ( | float | $v | ) |
Definition at line 229 of file BinaryStream.php.
pocketmine\utils\BinaryStream::putInt | ( | int | $v | ) |
Definition at line 197 of file BinaryStream.php.
pocketmine\utils\BinaryStream::putLDouble | ( | float | $v | ) |
Definition at line 273 of file BinaryStream.php.
pocketmine\utils\BinaryStream::putLFloat | ( | float | $v | ) |
Definition at line 249 of file BinaryStream.php.
pocketmine\utils\BinaryStream::putLInt | ( | int | $v | ) |
Definition at line 209 of file BinaryStream.php.
pocketmine\utils\BinaryStream::putLLong | ( | int | $v | ) |
Definition at line 297 of file BinaryStream.php.
pocketmine\utils\BinaryStream::putLong | ( | int | $v | ) |
Definition at line 285 of file BinaryStream.php.
pocketmine\utils\BinaryStream::putLShort | ( | int | $v | ) |
Definition at line 161 of file BinaryStream.php.
pocketmine\utils\BinaryStream::putLTriad | ( | int | $v | ) |
Definition at line 185 of file BinaryStream.php.
pocketmine\utils\BinaryStream::putShort | ( | int | $v | ) |
Definition at line 141 of file BinaryStream.php.
pocketmine\utils\BinaryStream::putTriad | ( | int | $v | ) |
Definition at line 173 of file BinaryStream.php.
pocketmine\utils\BinaryStream::putUnsignedVarInt | ( | int | $v | ) |
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().
pocketmine\utils\BinaryStream::putUnsignedVarLong | ( | int | $v | ) |
Writes a 64-bit variable-length integer to the end of the buffer.
Definition at line 348 of file BinaryStream.php.
pocketmine\utils\BinaryStream::putVarInt | ( | int | $v | ) |
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().
pocketmine\utils\BinaryStream::putVarLong | ( | int | $v | ) |
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().
pocketmine\utils\BinaryStream::rewind | ( | ) |
Rewinds the stream pointer to the start.
Definition at line 47 of file BinaryStream.php.
pocketmine\utils\BinaryStream::setOffset | ( | int | $offset | ) |
Definition at line 51 of file BinaryStream.php.
|
protected |
Definition at line 37 of file BinaryStream.php.
|
protected |
Definition at line 35 of file BinaryStream.php.