an efficient binary archive format
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

readme

zach efd1647c 14d0f1e7

+21
+21
README.md
··· 27 27 archive.vacuum()?; 28 28 ``` 29 29 30 + ## C API 31 + 32 + The library includes C bindings for use from other languages: 33 + 34 + ```c 35 + #include "bindle.h" 36 + 37 + Bindle* bindle = bindle_open("data.bndl"); 38 + bindle_add(bindle, "file.txt", data, len, BindleCompressNone); 39 + bindle_save(bindle); 40 + 41 + size_t size; 42 + uint8_t* data = bindle_read(bindle, "file.txt", &size); 43 + 44 + // Or for uncompressed entries, read directly without decompression 45 + uint8_t* raw = bindle_read_uncompressed_direct(bindle, "file.txt", &size); 46 + 47 + free(data); 48 + bindle_close(bindle); 49 + ``` 50 + 30 51 ## CLI 31 52 32 53 The `bindle` command provides basic operations: