This commit is contained in:
2026-06-13 07:13:03 +00:00
parent aca0252cfd
commit 5778782737
10 changed files with 99 additions and 58 deletions

View File

@@ -199,6 +199,10 @@ func (s *TimeDeltaCompressor) CaptureState() {
s.state = &state
}
func (s *TimeDeltaCompressor) ForgetCapturedState() {
s.state = nil
}
func (s *TimeDeltaCompressor) Tail(offset int) []byte {
return s.buf[s.pos : len(s.buf)-offset]
}