Skip to content

Commit 3f7ced4

Browse files
authored
Update BinaryStream.php
1 parent 8cfa34c commit 3f7ced4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/BinaryStream.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,6 @@ public function getUnsignedVarLong() : int{
393393
* Writes a 64-bit variable-length integer to the end of the buffer.
394394
*/
395395
public function putUnsignedVarLong(int $v) : void{
396-
$this->addReadOps(10);
397396
$this->buffer .= Binary::writeUnsignedVarLong($v);
398397
}
399398

@@ -404,6 +403,7 @@ public function putUnsignedVarLong(int $v) : void{
404403
* @throws BinaryDataException
405404
*/
406405
public function getVarLong() : int{
406+
$this->addReadOps(10);
407407
return Binary::readVarLong($this->buffer, $this->offset);
408408
}
409409

0 commit comments

Comments
 (0)