Updated references and submodules

This commit is contained in:
Shoghi Cervantes
2015-04-19 15:37:18 +02:00
parent c2f72ea9ac
commit 094234dc0f
19 changed files with 74 additions and 83 deletions

View File

@ -57,8 +57,8 @@ abstract class DataPacket extends \stdClass{
return $this->channel;
}
public function setBuffer(&$buffer = null, $offset = 0){
$this->buffer =& $buffer;
public function setBuffer($buffer = null, $offset = 0){
$this->buffer = $buffer;
$this->offset = (int) $offset;
}
@ -66,7 +66,7 @@ abstract class DataPacket extends \stdClass{
return $this->offset;
}
public function &getBuffer(){
public function getBuffer(){
return $this->buffer;
}
@ -81,7 +81,7 @@ abstract class DataPacket extends \stdClass{
return $len === 1 ? $this->buffer{$this->offset++} : substr($this->buffer, ($this->offset += $len) - $len, $len);
}
protected function put(&$str){
protected function put($str){
$this->buffer .= $str;
}
@ -179,7 +179,7 @@ abstract class DataPacket extends \stdClass{
return $this->get($this->getShort());
}
protected function putString(&$v){
protected function putString($v){
$this->putShort(strlen($v));
$this->put($v);
}