We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fcef556 commit b32070bCopy full SHA for b32070b
src/serializer/PacketBatch.php
@@ -34,7 +34,8 @@ private function __construct(){
34
*/
35
final public static function decodeRaw(ByteBufferReader $in) : \Generator{
36
$c = 0;
37
- while($in->getUnreadLength() > 0){
+ $length = strlen($in->getData());
38
+ while($in->getOffset() < $length){
39
try{
40
$length = VarInt::readUnsignedInt($in);
41
$buffer = $in->readByteArray($length);
0 commit comments