| 446 | } |
| 447 | |
| 448 | void RleEncoderV2::writeValues(EncodingOption& option) { |
| 449 | if (numLiterals != 0) { |
| 450 | switch (option.encoding) { |
| 451 | case SHORT_REPEAT: |
| 452 | writeShortRepeatValues(option); |
| 453 | break; |
| 454 | case DIRECT: |
| 455 | writeDirectValues(option); |
| 456 | break; |
| 457 | case PATCHED_BASE: |
| 458 | writePatchedBasedValues(option); |
| 459 | break; |
| 460 | case DELTA: |
| 461 | writeDeltaValues(option); |
| 462 | break; |
| 463 | default: |
| 464 | throw NotImplementedYet("Not implemented yet"); |
| 465 | } |
| 466 | |
| 467 | numLiterals = 0; |
| 468 | prevDelta_ = 0; |
| 469 | } |
| 470 | } |
| 471 | |
| 472 | void RleEncoderV2::writeShortRepeatValues(EncodingOption&) { |
| 473 | int64_t repeatVal; |
nothing calls this directly
no test coverage detected