|
FireSync API
|
| kStatus kZstdStream_FinishWrite | ( | kZstdStream | zStream | ) |
Finishes writing the current Zstandard compression frame.
If the stream was opened in write mode, this method finalizes the current Zstandard compression frame. Output is flushed to the underlying stream, but the underlying stream itself is not flushed.
Additional writes can be performed after calling this method; the additional data will be part of a new Zstandard frame.
After calling this method, operations (e.g., seek) can be safely performed on the underlying stream until such time as another kZstdStream write is performed.
This method will be called automatically in the kZstdStream destructor, closing the current frame (if any). To avoid performing writes in the destructor (and/or to detect errors while closing the frame), this method can optionally be called explicitly before destroying the compression stream.
| zStream | Stream object. |