Definition at line 32 of file BigEndianNbtSerializer.php.
◆ checkReadStringLength()
static pocketmine\nbt\BaseNbtSerializer::checkReadStringLength |
( |
int | $len | ) |
|
|
staticprotectedinherited |
◆ checkWriteStringLength()
static pocketmine\nbt\BaseNbtSerializer::checkWriteStringLength |
( |
int | $len | ) |
|
|
staticprotectedinherited |
◆ read()
pocketmine\nbt\BaseNbtSerializer::read |
( |
string | $buffer, |
|
|
int & | $offset = 0, |
|
|
int | $maxDepth = 0 ) |
|
inherited |
Decodes NBT from the given binary string and returns it.
- Parameters
-
int | $offset | reference parameter |
- Exceptions
-
Definition at line 64 of file BaseNbtSerializer.php.
◆ readByte()
pocketmine\nbt\BaseNbtSerializer::readByte |
( |
| ) |
|
|
inherited |
◆ readByteArray()
pocketmine\nbt\BaseNbtSerializer::readByteArray |
( |
| ) |
|
|
inherited |
◆ readDouble()
pocketmine\nbt\BigEndianNbtSerializer::readDouble |
( |
| ) |
|
◆ readFloat()
pocketmine\nbt\BigEndianNbtSerializer::readFloat |
( |
| ) |
|
◆ readHeadless()
pocketmine\nbt\BaseNbtSerializer::readHeadless |
( |
string | $buffer, |
|
|
int | $rootType, |
|
|
int & | $offset = 0, |
|
|
int | $maxDepth = 0 ) |
|
inherited |
Reads a tag without a header from the buffer and returns it. The tag does not have a name, and the type is not specified by the binary data. Only the tag's raw binary value is present. This could be used if the expected root type is always the same.
This format is not usually seen in the wild, but it is used in some places in the Minecraft: Bedrock network protocol.
- Exceptions
-
Definition at line 87 of file BaseNbtSerializer.php.
◆ readInt()
pocketmine\nbt\BigEndianNbtSerializer::readInt |
( |
| ) |
|
◆ readIntArray()
pocketmine\nbt\BigEndianNbtSerializer::readIntArray |
( |
| ) |
|
◆ readLong()
pocketmine\nbt\BigEndianNbtSerializer::readLong |
( |
| ) |
|
◆ readMultiple()
pocketmine\nbt\BaseNbtSerializer::readMultiple |
( |
string | $buffer, |
|
|
int | $maxDepth = 0 ) |
|
inherited |
Decodes a list of NBT tags into objects and returns them.
TODO: This is only necessary because we don't have a streams API worth mentioning. Get rid of this in the future.
- Returns
- TreeRoot[]
- Exceptions
-
Definition at line 104 of file BaseNbtSerializer.php.
◆ readShort()
pocketmine\nbt\BigEndianNbtSerializer::readShort |
( |
| ) |
|
◆ readSignedByte()
pocketmine\nbt\BaseNbtSerializer::readSignedByte |
( |
| ) |
|
|
inherited |
◆ readSignedShort()
pocketmine\nbt\BigEndianNbtSerializer::readSignedShort |
( |
| ) |
|
◆ readString()
pocketmine\nbt\BaseNbtSerializer::readString |
( |
| ) |
|
|
inherited |
◆ write()
pocketmine\nbt\BaseNbtSerializer::write |
( |
TreeRoot | $data | ) |
|
|
inherited |
◆ writeByte()
pocketmine\nbt\BaseNbtSerializer::writeByte |
( |
int | $v | ) |
|
|
inherited |
◆ writeByteArray()
pocketmine\nbt\BaseNbtSerializer::writeByteArray |
( |
string | $v | ) |
|
|
inherited |
◆ writeDouble()
pocketmine\nbt\BigEndianNbtSerializer::writeDouble |
( |
float | $v | ) |
|
◆ writeFloat()
pocketmine\nbt\BigEndianNbtSerializer::writeFloat |
( |
float | $v | ) |
|
◆ writeHeadless()
pocketmine\nbt\BaseNbtSerializer::writeHeadless |
( |
Tag | $data | ) |
|
|
inherited |
Writes a nameless tag without any header information. The reader of the data must know what type to expect, as it is not specified in the data.
- See also
- BaseNbtSerializer::readHeadless()
Definition at line 140 of file BaseNbtSerializer.php.
◆ writeInt()
pocketmine\nbt\BigEndianNbtSerializer::writeInt |
( |
int | $v | ) |
|
◆ writeIntArray()
pocketmine\nbt\BigEndianNbtSerializer::writeIntArray |
( |
array | $array | ) |
|
◆ writeLong()
pocketmine\nbt\BigEndianNbtSerializer::writeLong |
( |
int | $v | ) |
|
◆ writeMultiple()
pocketmine\nbt\BaseNbtSerializer::writeMultiple |
( |
array | $data | ) |
|
|
inherited |
◆ writeShort()
pocketmine\nbt\BigEndianNbtSerializer::writeShort |
( |
int | $v | ) |
|
◆ writeString()
pocketmine\nbt\BaseNbtSerializer::writeString |
( |
string | $v | ) |
|
|
inherited |
◆ $buffer
pocketmine\nbt\BaseNbtSerializer::$buffer |
|
protectedinherited |
The documentation for this class was generated from the following file: