| @@ 220-226 (lines=7) @@ | ||
| 217 | /** |
|
| 218 | * @return mixed |
|
| 219 | */ |
|
| 220 | public function read_signed_short() |
|
| 221 | { |
|
| 222 | $this->bitcount = $this->bits = 0; |
|
| 223 | list(, $res) = unpack('s', $this->correctEndianness($this->rawread(2))); |
|
| 224 | ||
| 225 | return $res; |
|
| 226 | } |
|
| 227 | ||
| 228 | /** |
|
| 229 | * Reads 32 bit integer in big-endian byte order. |
|
| @@ 267-273 (lines=7) @@ | ||
| 264 | /** |
|
| 265 | * @return integer |
|
| 266 | */ |
|
| 267 | private function read_signed_long() |
|
| 268 | { |
|
| 269 | $this->bitcount = $this->bits = 0; |
|
| 270 | list(, $res) = unpack('l', $this->correctEndianness($this->rawread(4))); |
|
| 271 | ||
| 272 | return $res; |
|
| 273 | } |
|
| 274 | ||
| 275 | /** |
|
| 276 | * Even on 64 bit systems PHP integers are singed. |
|