compress.Count() method (#478)

This commit is contained in:
Alex Sharov 2022-06-03 12:14:58 +07:00 committed by GitHub
parent 157b4299e4
commit fdf7c6598b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -128,6 +128,8 @@ func (c *Compressor) SetTrace(trace bool) {
c.trace = trace
}
func (c *Compressor) Count() int { return int(c.wordsCount) }
func (c *Compressor) AddWord(word []byte) error {
c.wordsCount++