]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
update ZSTD_splitBlock() documentation
authorYann Collet <cyan@fb.com>
Fri, 25 Oct 2024 23:25:02 +0000 (16:25 -0700)
committerYann Collet <cyan@fb.com>
Fri, 25 Oct 2024 23:25:02 +0000 (16:25 -0700)
lib/compress/zstd_preSplit.h

index 07d7d4ef50a66924890196f37add0977f41fb691..d606a52b59eed0b4e24f448aff3d928a87b2cac0 100644 (file)
@@ -19,14 +19,16 @@ extern "C" {
 
 #define ZSTD_SLIPBLOCK_WORKSPACESIZE 8208
 
-/* @level must be a value between 0 and 3.
- *        higher levels spend more energy to find block boundaries
- * @workspace must be aligned on 8-bytes boundaries
+/* ZSTD_splitBlock():
+ * @level must be a value between 0 and 4.
+ *        higher levels spend more energy to detect block boundaries.
+ * @workspace must be aligned for size_t.
  * @wkspSize must be at least >= ZSTD_SLIPBLOCK_WORKSPACESIZE
- * note2:
- * for the time being, this function only accepts full 128 KB blocks,
- * therefore @blockSizeMax must be == 128 KB.
- * This could be extended to smaller sizes in the future.
+ * note:
+ * For the time being, this function only accepts full 128 KB blocks.
+ * Therefore, @blockSize must be == 128 KB.
+ * While this could be extended to smaller sizes in the future,
+ * it is not yet clear if this would be useful. TBD.
  */
 size_t ZSTD_splitBlock(const void* blockStart, size_t blockSize,
                     int level,