|
@@ 247-253 (lines=7) @@
|
| 244 |
|
* @return mixed |
| 245 |
|
* @throws \MySQLReplication\BinaryDataReader\BinaryDataReaderException |
| 246 |
|
*/ |
| 247 |
|
public function readUInt40() |
| 248 |
|
{ |
| 249 |
|
$data1 = unpack('C', $this->read(self::UNSIGNED_CHAR_LENGTH))[1]; |
| 250 |
|
$data2 = unpack('I', $this->read(self::UNSIGNED_INT32_LENGTH))[1]; |
| 251 |
|
|
| 252 |
|
return $data1 + ($data2 << 8); |
| 253 |
|
} |
| 254 |
|
|
| 255 |
|
/** |
| 256 |
|
* @return mixed |
|
@@ 349-355 (lines=7) @@
|
| 346 |
|
* @return int |
| 347 |
|
* @throws \MySQLReplication\BinaryDataReader\BinaryDataReaderException |
| 348 |
|
*/ |
| 349 |
|
public function readInt40Be() |
| 350 |
|
{ |
| 351 |
|
$data1 = unpack('N', $this->read(self::UNSIGNED_INT32_LENGTH))[1]; |
| 352 |
|
$data2 = unpack('C', $this->read(self::UNSIGNED_CHAR_LENGTH))[1]; |
| 353 |
|
|
| 354 |
|
return $data2 + ($data1 << 8); |
| 355 |
|
} |
| 356 |
|
|
| 357 |
|
/** |
| 358 |
|
* @return int |