mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-19 04:15:04 +00:00
Added binary reading optimizations, faster 64-bit reading
This commit is contained in:
@@ -68,8 +68,8 @@ abstract class DataPacket extends \stdClass{
|
||||
$this->buffer .= $str;
|
||||
}
|
||||
|
||||
protected function getLong($signed = true){
|
||||
return Binary::readLong($this->get(8), $signed);
|
||||
protected function getLong(){
|
||||
return Binary::readLong($this->get(8));
|
||||
}
|
||||
|
||||
protected function putLong($v){
|
||||
|
Reference in New Issue
Block a user