This commit is contained in:
2026-06-11 14:27:38 +00:00
parent 09f270aa6f
commit ed203195fa
7 changed files with 431 additions and 1295 deletions

12
qb.go
View File

@@ -26,9 +26,9 @@ const (
type TimestampCompressor interface {
// (tmp, timestamp)
Evaluate([]byte, uint32) TimeEvaluationReport
// (offset, tmp)
Append(int, []byte)
//Size() int
// (offset, change, timestamp)
Append(int, []byte, uint32)
Size() int
//Chunks() [][]byte
//DeleteLast()
CaptureState()
@@ -51,9 +51,9 @@ type TimeEvaluationReport struct {
type ValueCompressor interface {
// (tmp, value)
Evaluate([]byte, float64) ValueEvaluationReport
// (offset, tmp, delta)
Append(int, []byte, uint64)
//Size() int
// (offset, change, value, delta)
Append(int, []byte, float64, uint64)
Size() int
//Chunks() [][]byte
//DeleteLast()
CaptureState()