Skip to content

"zerocast" is a lossy compression technology boasting the highest compression ratio in history.

License

Notifications You must be signed in to change notification settings

t3tra-dev/zerocast

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

[Japanese/日本語]

zerocast

"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!

usage

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 version

Also, 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);

build & install

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

related works

  • Infinite Monkey Theorem
  • God
  • Engineers who didn't back up their data

Users' Creations:

license

This project is licensed under the MIT License - see the LICENSE file for details.

About

"zerocast" is a lossy compression technology boasting the highest compression ratio in history.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published