This commit is contained in:
2026-06-07 01:06:16 +00:00
parent 0e019118c2
commit 776a341c57
9 changed files with 738 additions and 747 deletions

11
qb.go
View File

@@ -23,17 +23,18 @@ const (
)
type TimestampCompressor interface {
CalcRequiredSpace(uint32) int
Append(uint32)
CalcRequiredSpace(uint32) (int, int)
Append(int, uint32)
Size() int
Chunks() [][]byte
DeleteLast()
Renew()
Lock()
Unlock()
CaptureState()
ForgetCapturedState()
CreateDecompressor() TimestampDecompressor
Snapshot() ([][]byte, int) // chunks, size
Snapshot() ([]byte, []byte) // payload, additional payload
Offset() int
Sync()
//LastTimestamp() uint32
}