mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 12:39:43 +00:00
Update RakNetDataPacket.php
This commit is contained in:
parent
a071f577bf
commit
7d1e1d0767
1 changed files with 2 additions and 5 deletions
|
|
@ -59,11 +59,8 @@ abstract class RakNetDataPacket extends stdClass{
|
||||||
}elseif($len === true){
|
}elseif($len === true){
|
||||||
return substr($this->buffer, $this->offset);
|
return substr($this->buffer, $this->offset);
|
||||||
}
|
}
|
||||||
$buffer = b"";
|
$this->offset += $len;
|
||||||
for(; $len > 0; --$len, ++$this->offset){
|
return substr($this->buffer, $this->offset - $len, $len);
|
||||||
$buffer .= $this->buffer{$this->offset};
|
|
||||||
}
|
|
||||||
return $buffer;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function put($str){
|
protected function put($str){
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue