mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-21 02:16:33 +00:00
Removed years-old leftovers from old PocketMine
This commit is contained in:
parent
903534572d
commit
01a07a0b09
@ -176,22 +176,6 @@ class BinaryStream extends \stdClass{
|
|||||||
$this->buffer .= chr($v);
|
$this->buffer .= chr($v);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getDataArray($len = 10){
|
|
||||||
$data = [];
|
|
||||||
for($i = 1; $i <= $len and !$this->feof(); ++$i){
|
|
||||||
$data[] = $this->get($this->getTriad());
|
|
||||||
}
|
|
||||||
|
|
||||||
return $data;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function putDataArray(array $data = []){
|
|
||||||
foreach($data as $v){
|
|
||||||
$this->putTriad(strlen($v));
|
|
||||||
$this->put($v);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getUUID(){
|
public function getUUID(){
|
||||||
return UUID::fromBinary($this->get(16));
|
return UUID::fromBinary($this->get(16));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user