@@ -334,14 +334,14 @@ _zstd.ZstdCompressor.__new__ as _zstd_ZstdCompressor_new
334334
335335Create a compressor object for compressing data incrementally.
336336
337- Thread-safe at method level. For one-shot compression, use the compress()
338- function instead.
337+ Thread-safe at method level. For one-shot compression, use the
338+ compress() function instead.
339339[clinic start generated code]*/
340340
341341static PyObject *
342342_zstd_ZstdCompressor_new_impl (PyTypeObject * type , PyObject * level ,
343343 PyObject * options , PyObject * zstd_dict )
344- /*[clinic end generated code: output=cdef61eafecac3d7 input=92de0211ae20ffdc ]*/
344+ /*[clinic end generated code: output=cdef61eafecac3d7 input=bbfeeaa06fd3bd4d ]*/
345345{
346346 ZstdCompressor * self = PyObject_GC_New (ZstdCompressor , type );
347347 if (self == NULL ) {
@@ -603,15 +603,15 @@ _zstd.ZstdCompressor.compress
603603
604604Provide data to the compressor object.
605605
606- Return a chunk of compressed data if possible, or b'' otherwise. When you have
607- finished providing data to the compressor, call the flush() method to finish
608- the compression process.
606+ Return a chunk of compressed data if possible, or b'' otherwise.
607+ When you have finished providing data to the compressor, call the
608+ flush() method to finish the compression process.
609609[clinic start generated code]*/
610610
611611static PyObject *
612612_zstd_ZstdCompressor_compress_impl (ZstdCompressor * self , Py_buffer * data ,
613613 int mode )
614- /*[clinic end generated code: output=ed7982d1cf7b4f98 input=ac2c21d180f579ea ]*/
614+ /*[clinic end generated code: output=ed7982d1cf7b4f98 input=11726dff64d7b2f9 ]*/
615615{
616616 PyObject * ret ;
617617
@@ -661,14 +661,14 @@ _zstd.ZstdCompressor.flush
661661
662662Finish the compression process.
663663
664- Flush any remaining data left in internal buffers. Since Zstandard data
665- consists of one or more independent frames, the compressor object can still
666- be used after this method is called.
664+ Flush any remaining data left in internal buffers. Since Zstandard
665+ data consists of one or more independent frames, the compressor
666+ object can still be used after this method is called.
667667[clinic start generated code]*/
668668
669669static PyObject *
670670_zstd_ZstdCompressor_flush_impl (ZstdCompressor * self , int mode )
671- /*[clinic end generated code: output=b7cf2c8d64dcf2e3 input=0ab19627f323cdbc ]*/
671+ /*[clinic end generated code: output=b7cf2c8d64dcf2e3 input=130e0b1eddf0f498 ]*/
672672{
673673 PyObject * ret ;
674674
@@ -710,19 +710,20 @@ _zstd.ZstdCompressor.set_pledged_input_size
710710
711711Set the uncompressed content size to be written into the frame header.
712712
713- This method can be used to ensure the header of the frame about to be written
714- includes the size of the data, unless the CompressionParameter.content_size_flag
715- is set to False. If last_mode != FLUSH_FRAME, then a RuntimeError is raised.
713+ This method can be used to ensure the header of the frame about to
714+ be written includes the size of the data, unless the
715+ CompressionParameter.content_size_flag is set to False.
716+ If last_mode != FLUSH_FRAME, then a RuntimeError is raised.
716717
717- It is important to ensure that the pledged data size matches the actual data
718- size. If they do not match the compressed output data may be corrupted and the
719- final chunk written may be lost.
718+ It is important to ensure that the pledged data size matches the
719+ actual data size. If they do not match the compressed output data
720+ may be corrupted and the final chunk written may be lost.
720721[clinic start generated code]*/
721722
722723static PyObject *
723724_zstd_ZstdCompressor_set_pledged_input_size_impl (ZstdCompressor * self ,
724725 unsigned long long size )
725- /*[clinic end generated code: output=3a09e55cc0e3b4f9 input=afd8a7d78cff2eb5 ]*/
726+ /*[clinic end generated code: output=3a09e55cc0e3b4f9 input=d6d1669171af3da4 ]*/
726727{
727728 // Error occured while converting argument, should be unreachable
728729 assert (size != ZSTD_CONTENTSIZE_ERROR );
0 commit comments