摘要:.NET/CLI的PE文件中广泛采用了一种整数压缩算法,这种算法可以将一个32位整数根据其大小的不同放置在1、2或4个字节中。当整数的值比较小时,这种算法能够有效地减少PE文件的大小。本文介绍了这种压缩算法,并给出了压缩/解压缩的参考实现。 阅读全文
posted @ 2010-02-09 19:20 Anders Liu 阅读 (2537) 评论 (13) 编辑
摘要:Compressed Integer is widely used in .NET/CLI PE files; this algorithm can place a 32-bit integer into 1, 2, or 4 bytes base on its value. Compressed integer can save the size of a PE file effectively, especially when the integer value is small. This document introduces the compression algorithm for integer, and gives the reference implement of the algorithm. 阅读全文
posted @ 2010-02-09 17:00 Anders Liu 阅读 (2283) 评论 (5) 编辑