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
A single non-negative whole number. Values larger than
2^31 - 1 are allowed, up to 2^53 - 1. Beyond that an R numeric no
longer identifies a single integer, since 2^53 and 2^53 + 1 are the
same double.
Value
A numeric scalar giving the maximum compressed size.
Examples
zstd_compress_bound(100000)
#> [1] 100405
zstd_compress_bound(2^31)
#> [1] 2155872256