wp
This commit is contained in:
@@ -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]
|
||||
}
|
||||
|
||||
@@ -172,6 +172,10 @@ func (s *ValueDeltaCompressor) CaptureState() {
|
||||
s.state = &state
|
||||
}
|
||||
|
||||
func (s *ValueDeltaCompressor) ForgetCapturedState() {
|
||||
s.state = nil
|
||||
}
|
||||
|
||||
func (s *ValueDeltaCompressor) Tail(offset int) []byte {
|
||||
return s.buf[offset:s.pos]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user