Skip to contents

Exports the compress bound function from the zstd library. Returns the maximum potential compressed size of an object of length size.

Usage

zstd_compress_bound(size)

Arguments

size

An integer size

Value

Maximum compressed size.

Examples

zstd_compress_bound(100000)
#> [1] 100405
zstd_compress_bound(1e9)
#> [1] 1003906250