Faster NBT parsing

This commit is contained in:
Shoghi Cervantes
2014-03-05 10:37:14 +01:00
parent 98c0dfef43
commit 5f53f61121
2 changed files with 11 additions and 8 deletions

View File

@@ -31,7 +31,7 @@ class RakNetPacket extends Packet{
public function pid(){
return $this->packetID;
}
protected function get($len){
if($len <= 0){
$this->offset = strlen($this->buffer) - 1;