| C1.C1Flash.2 Assembly > 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 MemoryStream ms = new MemoryStream(buffer); // attach decompressor stream to memory stream C1ZStreamReader sr = new C1ZStreamReader(ms); // read uncompressed data StreamReader reader = new StreamReader(sr); return reader.ReadToEnd(); }
System.Object
System.MarshalByRefObject
System.IO.Stream
C1.C1Zip.C1ZStreamReader