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