"zerocast" is a lossy compression technology boasting the highest compression ratio in history.
zerocast achieves an "undefined" compression ratio by compressing all data to 0 bytes. Data can be restored within a finite time by using an infinite number of monkeys for decompression.
Well...of course, this is a joke!
This repository implements the zerocast CLI. Usage is as follows:
# help (aliases: --help, -h)
zerocast help
# compress
zerocast compress <input_path> [output_path]
# decompress
zerocast decompress <input_path> [output_path]
# version (aliases: --version, -v)
zerocast versionAlso, the zerocast_compress and zerocast_decompress functions of zerocast are available from zerocast.h using the libzerocast C library.
Their signatures are as follows:
ZEROCAST_API size_t zerocast_compress(const unsigned char *input_data,
size_t input_size,
unsigned char **out_data);
ZEROCAST_API int zerocast_decompress(const unsigned char *input_data,
size_t input_size,
unsigned char **out_data,
size_t *out_size,
FILE *error_stream);The zerocast CLI can be built and installed using the following methods:
# build
cmake -S . -B build && cmake --build build
# install
sudo cmake --install build- Infinite Monkey Theorem
- God
- Engineers who didn't back up their data
Users' Creations:
This project is licensed under the MIT License - see the LICENSE file for details.