Skip to content

Commit 2054027

Browse files
committed
Improve documentation
1 parent 55c2c31 commit 2054027

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/BaseNbtSerializer.php

+4-3
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,11 @@ public function read(string $buffer, int &$offset = 0, int $maxDepth = 0) : Tree
7676

7777
/**
7878
* Reads a tag without a header from the buffer and returns it. The tag does not have a name, and the type is not
79-
* specified by the binary data. Only the tag's raw binary value is present.
79+
* specified by the binary data. Only the tag's raw binary value is present. This could be used if the expected root
80+
* type is always the same.
8081
*
81-
* This could be used if the expected root type is always the same, but it's not usually seen in the wild.
82-
* However, this is used in some places in the Minecraft: Bedrock network protocol.
82+
* This format is not usually seen in the wild, but it is used in some places in the Minecraft: Bedrock network
83+
* protocol.
8384
*
8485
* @throws NbtDataException
8586
*/

0 commit comments

Comments
 (0)