| @@ 392-400 (lines=9) @@ | ||
| 389 | * @param int $position |
|
| 390 | * @return int |
|
| 391 | */ |
|
| 392 | protected function bitGet($bitmap, $position) |
|
| 393 | { |
|
| 394 | $bit = $bitmap[(int)($position / 8)]; |
|
| 395 | if (is_string($bit)) { |
|
| 396 | $bit = ord($bit); |
|
| 397 | } |
|
| 398 | ||
| 399 | return $bit & (1 << ($position & 7)); |
|
| 400 | } |
|
| 401 | ||
| 402 | /** |
|
| 403 | * @param string $nullBitmap |
|
| @@ 407-415 (lines=9) @@ | ||
| 404 | * @param int $position |
|
| 405 | * @return int |
|
| 406 | */ |
|
| 407 | protected function checkNull($nullBitmap, $position) |
|
| 408 | { |
|
| 409 | $bit = $nullBitmap[(int)($position / 8)]; |
|
| 410 | if (is_string($bit)) { |
|
| 411 | $bit = ord($bit); |
|
| 412 | } |
|
| 413 | ||
| 414 | return $bit & (1 << ($position % 8)); |
|
| 415 | } |
|
| 416 | ||
| 417 | /** |
|
| 418 | * @param int $size |
|