We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39188c3 commit 26576c9Copy full SHA for 26576c9
src/FontLib/BinaryStream.php
@@ -157,6 +157,10 @@ public function readUInt8() {
157
return ord($this->read(1));
158
}
159
160
+ public function readUInt8Many($count) {
161
+ return array_values(unpack("C*", $this->read($count)));
162
+ }
163
+
164
public function writeUInt8($data) {
165
return $this->write(chr($data), 1);
166
@@ -171,6 +175,10 @@ public function readInt8() {
171
175
return $v;
172
176
173
177
178
+ public function readInt8Many($count) {
179
+ return array_values(unpack("c*", $this->read($count)));
180
181
174
182
public function writeInt8($data) {
183
if ($data < 0) {
184
$data += 0x100;
0 commit comments