Update besar apk finance
This commit is contained in:
+6
-2
@@ -120,7 +120,7 @@ class BinaryStream {
|
||||
* @return bool True if the $offset position exists in the file
|
||||
*/
|
||||
public function seek($offset) {
|
||||
return fseek($this->f, $offset, SEEK_SET) == 0;
|
||||
return fseek($this->f, (int)$offset, SEEK_SET) == 0;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -158,7 +158,11 @@ class BinaryStream {
|
||||
}
|
||||
|
||||
public function readUInt8() {
|
||||
return ord($this->read(1));
|
||||
$byte = $this->read(1);
|
||||
if ($byte === '') {
|
||||
return 0;
|
||||
}
|
||||
return ord($byte);
|
||||
}
|
||||
|
||||
public function readUInt8Many($count) {
|
||||
|
||||
@@ -69,28 +69,34 @@ class Collection extends BinaryStream implements Iterator, Countable {
|
||||
return $this->collection[$fontId] = $font;
|
||||
}
|
||||
|
||||
#[\ReturnTypeWillChange]
|
||||
function current() {
|
||||
return $this->getFont($this->position);
|
||||
}
|
||||
|
||||
#[\ReturnTypeWillChange]
|
||||
function key() {
|
||||
return $this->position;
|
||||
}
|
||||
|
||||
#[\ReturnTypeWillChange]
|
||||
function next() {
|
||||
return ++$this->position;
|
||||
}
|
||||
|
||||
#[\ReturnTypeWillChange]
|
||||
function rewind() {
|
||||
$this->position = 0;
|
||||
}
|
||||
|
||||
#[\ReturnTypeWillChange]
|
||||
function valid() {
|
||||
$this->parse();
|
||||
|
||||
return isset($this->collectionOffsets[$this->position]);
|
||||
}
|
||||
|
||||
#[\ReturnTypeWillChange]
|
||||
function count() {
|
||||
$this->parse();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user