一聚教程网:一个值得你收藏的教程网站

热门教程

michael_wp原创:用.net实现zip----1

时间:2022-07-02 11:35:54 编辑:袖梨 来源:一聚教程网

//ZipEntry.cs
using System;
using System.IO;
namespace OrganicBit.Zip {
    /// Specifies how the the zip entry should be compressed.
    public enum CompressionMethod {
        /// No compression.
        Stored = 0,
        /// Default and only supported compression method.
        Deflated = 8
    }
    /// Specifies the amount of compression to apply to compressed zip entires.
    public enum CompressionLevel : int {
        /// Default compression level.    A good choice for speed and size.
        Default = -1,
        /// Do not perfrom compression.
        None = 0,
        /// Compress the entry as fast as possible size trading size for time.
        Fastest = 1,
        /// Compress the entry using a balance of size and time.

热门栏目