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 8ecafdd commit 9508bf2Copy full SHA for 9508bf2
src/serializer/PacketBatch.php
@@ -35,8 +35,8 @@ private function __construct(){
35
*/
36
final public static function decodeRaw(ByteBufferReader $in) : \Generator{
37
$c = 0;
38
- $length = strlen($in->getData());
39
- while($in->getOffset() < $length){
+ $batchLength = strlen($in->getData());
+ while($in->getOffset() < $batchLength){
40
try{
41
$length = VarInt::readUnsignedInt($in);
42
$buffer = $in->readByteArray($length);
0 commit comments