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 8cfa34c commit 3f7ced4Copy full SHA for 3f7ced4
src/BinaryStream.php
@@ -393,7 +393,6 @@ public function getUnsignedVarLong() : int{
393
* Writes a 64-bit variable-length integer to the end of the buffer.
394
*/
395
public function putUnsignedVarLong(int $v) : void{
396
- $this->addReadOps(10);
397
$this->buffer .= Binary::writeUnsignedVarLong($v);
398
}
399
@@ -404,6 +403,7 @@ public function putUnsignedVarLong(int $v) : void{
404
403
* @throws BinaryDataException
405
406
public function getVarLong() : int{
+ $this->addReadOps(10);
407
return Binary::readVarLong($this->buffer, $this->offset);
408
409
0 commit comments