Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
lingeringwillx authored Nov 13, 2024
1 parent 668e806 commit 83b663b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions practice/compression.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ namespace qfs {
return bytes();
}

// 111ppp00
// 111ppppp
dst[dstPos++] = 0b11100000 + ((plain - 4) >> 2);

copyBytes(src, srcPos, dst, dstPos, plain);
Expand Down Expand Up @@ -204,7 +204,7 @@ namespace qfs {
offset = ((b0 & 0b00010000) << 12) + (b1 << 8) + b2 + 1; //1-131072

} else if(b0 < 0xFC) {
// 111ppp00
// 111ppppp
plain = ((b0 & 0b00011111) << 2) + 4; //4-112
nCopy = 0;
offset = 0;
Expand Down Expand Up @@ -234,4 +234,4 @@ namespace qfs {
return dst;
}

}
}

0 comments on commit 83b663b

Please sign in to comment.