wp
This commit is contained in:
@@ -202,6 +202,20 @@ func (s *ReverseCumulativeDeltaCompressor) Unlock() {
|
||||
s.state = nil
|
||||
}
|
||||
|
||||
func (s *ReverseCumulativeDeltaCompressor) Renew() {
|
||||
s.buf = conbuf.New(nil)
|
||||
s.pos = 0
|
||||
//
|
||||
s.baseValue = 0
|
||||
s.lastDelta = 0
|
||||
s.lastDeltaSize = 0
|
||||
s.h = 0
|
||||
}
|
||||
|
||||
func (s *ReverseCumulativeDeltaCompressor) Chunks() [][]byte {
|
||||
return s.buf.Chunks()
|
||||
}
|
||||
|
||||
// DECOMPRESSOR
|
||||
|
||||
type ReverseCumulativeDeltaDecompressor struct {
|
||||
|
||||
Reference in New Issue
Block a user