@@ 257-267 (lines=11) @@ | ||
254 | return $num[1]; |
|
255 | } |
|
256 | ||
257 | private function unpackU32() |
|
258 | { |
|
259 | $this->ensureLength(4); |
|
260 | ||
261 | $num = \substr($this->buffer, $this->offset, 4); |
|
262 | $this->offset += 4; |
|
263 | ||
264 | $num = \unpack('N', $num); |
|
265 | ||
266 | return $num[1]; |
|
267 | } |
|
268 | ||
269 | private function unpackU64() |
|
270 | { |
|
@@ 324-334 (lines=11) @@ | ||
321 | return $num[1]; |
|
322 | } |
|
323 | ||
324 | private function unpackI64() |
|
325 | { |
|
326 | $this->ensureLength(8); |
|
327 | ||
328 | $num = \substr($this->buffer, $this->offset, 8); |
|
329 | $this->offset += 8; |
|
330 | ||
331 | $set = \unpack('N2', $num); |
|
332 | ||
333 | return $set[1] << 32 | $set[2]; |
|
334 | } |
|
335 | ||
336 | private function unpackFloat() |
|
337 | { |