xor2Iterator decodes XOR2 chunks.
| 513 | |
| 514 | // xor2Iterator decodes XOR2 chunks. |
| 515 | type xor2Iterator struct { |
| 516 | br bstreamReader |
| 517 | numTotal uint16 |
| 518 | numRead uint16 |
| 519 | |
| 520 | firstSTKnown bool |
| 521 | firstSTChangeOn uint8 |
| 522 | |
| 523 | leading uint8 |
| 524 | trailing uint8 |
| 525 | |
| 526 | st int64 |
| 527 | t int64 |
| 528 | val float64 |
| 529 | |
| 530 | tDelta uint64 |
| 531 | stDiff int64 // Accumulated prevT - st. |
| 532 | err error |
| 533 | |
| 534 | baselineV float64 // Last non-stale value for XOR baseline. |
| 535 | } |
| 536 | |
| 537 | func (it *xor2Iterator) Seek(t int64) ValueType { |
| 538 | if it.err != nil { |
nothing calls this directly
no outgoing calls
no test coverage detected