5 points | by ozgrakkurt a day ago
2 comments
Sorry for asking, but there are too many weird project in this field. Can compressed_size be bigger than input.len?
Yes because you have to have some metadata that describes how to decompress the compressed data. This is the case in all compression algorithms I know.
As an example Lz4 and zstd also have a compressBound() function that calculates this.
Sorry for asking, but there are too many weird project in this field. Can compressed_size be bigger than input.len?
Yes because you have to have some metadata that describes how to decompress the compressed data. This is the case in all compression algorithms I know.
As an example Lz4 and zstd also have a compressBound() function that calculates this.