This commit is contained in:
2026-06-14 23:12:03 +03:00
parent 181031a753
commit b32279deaf
35 changed files with 1395 additions and 1062 deletions

8
qb.go
View File

@@ -30,7 +30,7 @@ type TimestampCompressor interface {
// (rewindOffset, change, timestamp)
Append(int, []byte, uint32)
Size() int
StoredSize() int
CommitedSize() int
//DeleteLast()
CaptureState()
ForgetCapturedState()
@@ -40,7 +40,7 @@ type TimestampCompressor interface {
//Payload() []byte // для снапшота
// Offset() int
ReplaceBuffer([]byte)
WriteStoredTo(io.Writer) error
WriteCommitedTo(io.Writer) error
LastTimestamp() uint32
ReplaceSinceWithUntil() uint32
}
@@ -65,7 +65,7 @@ type ValueCompressor interface {
// (rewindOffset, change, value, delta)
Append(int, []byte, float64, uint64)
Size() int
StoredSize() int
CommitedSize() int
//Chunks() [][]byte
//DeleteLast()
CaptureState()
@@ -77,7 +77,7 @@ type ValueCompressor interface {
//Payload() []byte // для снапшота
//Offset() int
ReplaceBuffer([]byte)
WriteStoredTo(io.Writer) error
WriteCommitedTo(io.Writer) error
LastValue() float64
}