C# Class SteamKit2.ZipUtil

Mostrar archivo Open project: Top-Cat/SteamBot Class Usage Examples

Public Methods

Method Description
Compress ( byte buffer ) : byte[]
Decompress ( byte buffer ) : byte[]

Private Methods

Method Description
DeflateBuffer ( byte uncompressedBuffer ) : byte[]
InflateBuffer ( byte compressedBuffer, UInt32 decompressedSize ) : byte[]
PeekHeader ( BinaryReader reader, UInt32 expecting ) : bool
ReadCentralDirectory ( BinaryReader reader, String &fileName ) : Int32
ReadEndOfDirectory ( BinaryReader reader ) : UInt32
ReadLocalFile ( BinaryReader reader, String &fileName, UInt32 &decompressedSize ) : byte[]
WriteCentralDirectory ( BinaryWriter writer, string fileName, UInt32 CRC, UInt32 compressedSize, UInt32 decompressedSize, Int32 localHeaderOffset ) : UInt32
WriteEndOfDirectory ( BinaryWriter writer, UInt32 count, UInt32 CDRSize, Int32 CDROffset ) : void
WriteHeader ( BinaryWriter writer, UInt32 header ) : Int32
WriteLocalFile ( BinaryWriter writer, string fileName, UInt32 CRC, UInt32 decompressedSize, byte processedBuffer ) : void

Method Details

Compress() public static method

public static Compress ( byte buffer ) : byte[]
buffer byte
return byte[]

Decompress() public static method

public static Decompress ( byte buffer ) : byte[]
buffer byte
return byte[]