This commit is contained in:
Dylan K. Taylor
2017-06-04 16:54:25 +01:00
parent 138fb88431
commit 2b02fcfe2c
4 changed files with 17 additions and 9 deletions

View File

@ -178,11 +178,11 @@ class BinaryStream{
$this->buffer .= Binary::writeLTriad($v);
}
public function getByte(){
public function getByte() : int{
return ord($this->buffer{$this->offset++});
}
public function putByte($v){
public function putByte(int $v){
$this->buffer .= chr($v);
}