Added binary reading optimizations, faster 64-bit reading

This commit is contained in:
Shoghi Cervantes
2014-09-10 12:13:15 +02:00
parent 8940360df4
commit 1174b0c45c
2 changed files with 67 additions and 59 deletions

View File

@@ -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){