|
FireSync API
|
| kStatus kZstdStream_Construct | ( | kZstdStream * | zStream, |
| kStream | stream, | ||
| kZstdMode | mode, | ||
| k32s | level, | ||
| kAlloc | allocator | ||
| ) |
Constructs a kZstdStream object.
The kZstdStream class requires that its underlying stream object (e.g., kFile) should provide a a read buffer (if read operations are to be performed). Configure the stream to allocate a read buffer before passing the stream to this constructor.
| zStream | Destination for the constructed object handle. |
| stream | Underlying stream; see note above on read buffer requirement. |
| mode | Specifies how to construct the stream (reading, writing or both). |
| level | Compression preset level for writing; accepts kZstdPreset, kCompressionPreset, or integer values. |
| allocator | Memory allocator (or kNULL for default). |