Browse Source

Better document hashTable size

The size must be 65536 ints, not bytes. Wrote this as the customary Go
expression 1<<16.
greatroar 5 years ago
parent
commit
29411845fa
1 changed files with 1 additions and 1 deletions
  1. 1 1
      block.go

+ 1 - 1
block.go

@@ -35,7 +35,7 @@ func UncompressBlock(src, dst []byte) (int, error) {
 
 
 // CompressBlock compresses the source buffer into the destination one.
 // CompressBlock compresses the source buffer into the destination one.
 // This is the fast version of LZ4 compression and also the default one.
 // This is the fast version of LZ4 compression and also the default one.
-// The size of hashTable must be at least 64Kb.
+// The size of hashTable must be at least 1<<16.
 //
 //
 // The size of the compressed data is returned. If it is 0 and no error, then the data is incompressible.
 // The size of the compressed data is returned. If it is 0 and no error, then the data is incompressible.
 //
 //