C1.C1Zip Namespace : C1ZStreamReader Class |
'Declaration
Public Class C1ZStreamReader Inherits System.IO.Stream
public class C1ZStreamReader : System.IO.Stream
To decompress data from a compressed stream, create a C1ZStreamReader object passing the compressed stream to the C1ZStreamReader constructor.
Then read the data from the C1ZStreamReader using the Read method, or create a System.IO.StreamReader on the C1ZStreamReader. The second option is indicated when you want to read formatted data.
public string ExpandString(byte[] buffer) { // turn buffer into a memory stream var ms = new MemoryStream(buffer); // attach decompressor stream to memory stream var sr = new C1ZStreamReader(ms); // read uncompressed data var reader = new StreamReader(sr); return reader.ReadToEnd(); }
System.Object
System.MarshalByRefObject
System.IO.Stream
C1.C1Zip.C1ZStreamReader
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2