Parolin 0.7.9 6796
Console (soon DLLs) to do a tar like job
Loading...
Searching...
No Matches
linux_zstd.h File Reference
#include <linux/types.h>
#include <linux/zstd_errors.h>
#include <linux/zstd_lib.h>

Go to the source code of this file.

Functions

size_t zstd_compress_bound (size_t src_size)
 

Function Documentation

◆ zstd_compress_bound()

size_t zstd_compress_bound ( size_t src_size)

This is a kernel-style API that wraps the upstream zstd API, which cannot be used directly because the symbols aren't exported. It exposes the minimal functionality which is currently required by users of zstd in the kernel. Expose extra functions from lib/zstd/zstd.h as needed. zstd_compress_bound() - maximum compressed size in worst case scenario @src_size: The size of the data to compress.

Return: The maximum compressed size in the worst case scenario.