libfor整数压缩 C 语言库
libfor 是一个 ANSI C 库,是参考框架(Frame Of Reference)整数压缩的快速标量实现。
libfor 可以压缩顺序或者乱序的数列,另外,此库可以在压缩数据上直接执行操作:
-
选择:在指定索引处返回一个值;
-
线性搜索:对于未排序数列,或者短排序数列
-
下界搜索:对排序数列的二进制搜索
示例代码:
#define LEN 100 uint32_t in[LEN] = {0}; uint8_t out[512]; // Fill |in| with numbers of your choice for (int i = 0; i < LEN; i++) in[i] = i; // Now compress; can also use for_compress_sorted() if the numbers // are sorted. This is slightly faster. uint32_t size = for_compress_unsorted(&in[0], &out[0], LEN); printf("compressing %u integers (%u bytes) into %u bytes\n", LEN, LEN * 4, size); // Decompress again uint32_t decompressed[LEN]; for_uncompress(&out[0], &decompressed[0], LEN);
评论
easylzmaC语言压缩库
Easylzma是一个实现了LZMA压缩和解压缩算法的C语言库。LZMA,(Lempel-Ziv-Markovchain-Algorithm的縮寫),是2001年以來得到發展的一個數據壓縮演算法,它用
easylzmaC语言压缩库
0
compressGo 语言压缩库合集
compress的目标是提供Go语言除了标准库以外的其它纯粹、流行的压缩算法合集。这些包的目标如下:可维护性:代码保持良好的文档,良好的测试,可读性,易于维护,并且易于验证它符合正在实现的格式的规范执
compressGo 语言压缩库合集
0
SharpZipLib.NET压缩库
SharpZipLib是一个开源的.NET压缩库,支持zip以及存储和deflate压缩模式,支持一下.NET版本:.NET1.1.NET2.0.NET3.5.NET4.0.NETCompactFra
SharpZipLib.NET压缩库
0
HtmlCompressorHTML 压缩库
HtmlCompressor是一个Java类库,用来对HTML内容进行压缩。HtmlCompressor会删除HTML中无用的空格、空行、注释等内容。该项目还提供了Maven插件,详情请看https:
HtmlCompressorHTML 压缩库
0