method change

This commit is contained in:
obscuren 2014-11-03 23:45:32 +01:00
parent d87aa24885
commit c8302882c8
1 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ func Decompress(dat []byte) ([]byte, error) {
return buf.Bytes(), nil
}
func compressBlock(dat []byte) (ret []byte, n int) {
func compressChunk(dat []byte) (ret []byte, n int) {
switch {
case dat[0] == token:
return []byte{token, tokenToken}, 1
@ -75,7 +75,7 @@ func Compress(dat []byte) []byte {
i := 0
for i < len(dat) {
b, n := compressBlock(dat[i:])
b, n := compressChunk(dat[i:])
buf.Write(b)
i += n
}