FireSync API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kZstdStream.h
Go to the documentation of this file.
1 
8 #ifndef K_ZSTD_STREAM_H
9 #define K_ZSTD_STREAM_H
10 
11 #include <kApi/kApiDef.h>
12 #include <kApi/Io/kStream.h>
13 #include <kFireSync/kFsDef.h>
14 
21 typedef k32s kZstdMode;
22 
24 #define kZSTD_MODE_READ (0x01)
25 #define kZSTD_MODE_WRITE (0x02)
26 
34 typedef k32s kZstdPreset;
35 
37 #define kZSTD_PRESET_MIN (1)
38 #define kZSTD_PRESET_FAST (1)
39 #define kZSTD_PRESET_DEFAULT (10)
40 #define kZSTD_PRESET_DENSE (19)
41 #define kZSTD_PRESET_MAX (22)
42 
236  //typedef kStream kZstdStream; --forward-declared in kFsDef.x.h
237 
253 kFsFx(kStatus) kZstdStream_Construct(kZstdStream* zStream, kStream stream, kZstdMode mode, k32s level, kAlloc allocator);
254 
276 
294 
295 #include <kFireSync/Utils/kZstdStream.x.h>
296 
297 #endif
kStatus kZstdStream_FinishRead(kZstdStream zStream)
Finishes reading the current Zstandard compression frame.
Implements the Zstandard format for compression and decompression.
Essential API declarations for the kFireSync library.
kStatus kZstdStream_FinishWrite(kZstdStream zStream)
Finishes writing the current Zstandard compression frame.
kStatus kZstdStream_Construct(kZstdStream *zStream, kStream stream, kZstdMode mode, k32s level, kAlloc allocator)
Constructs a kZstdStream object.
Flags to control kZstdStream operation modes.