提交 37acb1ff authored 作者: Thomas Mueller's avatar Thomas Mueller

Reformatted

上级 e9bc1c2f
...@@ -86,10 +86,10 @@ public class CompressLZF implements Compressor { ...@@ -86,10 +86,10 @@ public class CompressLZF implements Compressor {
hashTab[off] = inPos; hashTab[off] = inPos;
off = inPos - ref - 1; off = inPos - ref - 1;
if (off < MAX_OFF && ref > 0 && in[ref + 2] == in[inPos + 2] && in[ref + 1] == in[inPos + 1] && in[ref] == in[inPos]) { if (off < MAX_OFF && ref > 0 && in[ref + 2] == in[inPos + 2] && in[ref + 1] == in[inPos + 1] && in[ref] == in[inPos]) {
int maxlen = inLen - inPos - 2; int maxLen = inLen - inPos - 2;
maxlen = maxlen > MAX_REF ? MAX_REF : maxlen; maxLen = maxLen > MAX_REF ? MAX_REF : maxLen;
int len = 3; int len = 3;
while (len < maxlen && in[ref + len] == in[inPos + len]) { while (len < maxLen && in[ref + len] == in[inPos + len]) {
len++; len++;
} }
len -= 2; len -= 2;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论