File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -615,6 +615,24 @@ Advanced parameter control
615
615
616
616
A value of zero causes the value to be selected automatically.
617
617
618
+ .. attribute :: content_size_flag
619
+
620
+ Write the size of the data to be compressed into the Zstandard frame
621
+ header when known prior to compressing.
622
+
623
+ This flag only takes effect under the following two scenarios:
624
+
625
+ * Calling :func: `compress ` for one-shot compression
626
+ * Providing all of the data to be compressed in the frame in a single
627
+ :meth: `ZstdCompressor.compress ` call, with the
628
+ :attr: `ZstdCompressor.FLUSH_FRAME ` mode.
629
+
630
+ All other compression calls may not write the size information into the
631
+ frame header.
632
+
633
+ ``True `` or ``1 `` enable the content size flag while ``False `` or ``0 ``
634
+ disable it.
635
+
618
636
.. attribute :: checksum_flag
619
637
620
638
A four-byte checksum using XXHash64 of the uncompressed content is
You can’t perform that action at this time.
0 commit comments