From fdf7c6598b86950421252d0b134ae17b26a558c6 Mon Sep 17 00:00:00 2001 From: Alex Sharov Date: Fri, 3 Jun 2022 12:14:58 +0700 Subject: [PATCH] compress.Count() method (#478) --- compress/compress.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compress/compress.go b/compress/compress.go index 95e01c403..99222b82a 100644 --- a/compress/compress.go +++ b/compress/compress.go @@ -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++