aboutsummaryrefslogtreecommitdiffstats
path: root/compression
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-11-04 06:45:32 +0800
committerobscuren <geffobscura@gmail.com>2014-11-04 06:45:32 +0800
commitc8302882c87afffeb7d9241060e24984a04cb8eb (patch)
treeb1d6d4bc79160b0231739ddbb8e38ff645f07e5b /compression
parentd87aa2488583e10b09b93dcb8741d3be051697a5 (diff)
downloaddexon-c8302882c87afffeb7d9241060e24984a04cb8eb.tar
dexon-c8302882c87afffeb7d9241060e24984a04cb8eb.tar.gz
dexon-c8302882c87afffeb7d9241060e24984a04cb8eb.tar.bz2
dexon-c8302882c87afffeb7d9241060e24984a04cb8eb.tar.lz
dexon-c8302882c87afffeb7d9241060e24984a04cb8eb.tar.xz
dexon-c8302882c87afffeb7d9241060e24984a04cb8eb.tar.zst
dexon-c8302882c87afffeb7d9241060e24984a04cb8eb.zip
method change
Diffstat (limited to 'compression')
-rw-r--r--compression/rle/read_write.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/compression/rle/read_write.go b/compression/rle/read_write.go
index a5b80222c..dde0e41ab 100644
--- a/compression/rle/read_write.go
+++ b/compression/rle/read_write.go
@@ -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
}