Displaying 1 result from an estimated 1 matches for "zstd_out_buff".
2020 Feb 06
0
[PATCH] Add support for zstd compression
...compression;
+extern int do_compression_zstd;
extern int protocol_version;
extern int module_id;
extern int def_compress_level;
@@ -624,6 +626,244 @@ static void see_deflate_token(char *buf, int32 len)
#endif
}
+#ifdef HAVE_LIBZSTD
+
+static ZSTD_inBuffer zstd_in_buff;
+static ZSTD_outBuffer zstd_out_buff;
+static ZSTD_CCtx *zstd_cctx;
+
+static void send_zstd_token(int f, int32 token, struct map_struct *buf,
+ OFF_T offset, int32 nb)
+{
+ static int comp_init_done, flush_pending;
+ ZSTD_EndDirective flush = ZSTD_e_continue;
+ int32 n, r;
+
+ /* initialization */
+ if (!comp_init_done) {
+
+...