Inheritance diagram for Zlib.ZlibBaseStream:

Public Member Functions

 ZlibBaseStream (System.IO.Stream stream, CompressionMode compressionMode, CompressionLevel level, bool leaveOpen)
 
override void Write (System.Byte[] buffer, int offset, int count)
 
void End ()
 
override void Close ()
 
override void Flush ()
 
override System.Int64 Seek (System.Int64 offset, System.IO.SeekOrigin origin)
 
override void SetLength (System.Int64 value)
 
override System.Int32 Read (System.Byte[] buffer, System.Int32 offset, System.Int32 count)
 
void ChangeDataToRead (int size)
 

Static Public Member Functions

static void CompressString (String s, Stream compressor)
 
static void CompressBuffer (byte[] b, Stream compressor)
 
static String UncompressString (byte[] compressed, Stream decompressor)
 
static byte[] UncompressBuffer (byte[] compressed, Stream decompressor)
 

Package Types

enum  StreamMode { StreamMode.Writer, StreamMode.Reader, StreamMode.Undefined }
 

Package Functions

void ChangeStream (System.IO.Stream stream)
 

Package Attributes

ZlibCodec _z = null
 
int DataToRead =int.MaxValue
 A counter which tracks how much compressed data is left to go. More...
 
StreamMode _streamMode = StreamMode.Undefined
 
FlushType _flushMode
 
CompressionMode _compressionMode
 
CompressionLevel _level
 
bool _leaveOpen
 
byte[] _workingBuffer
 
int _bufferSize = ZlibConstants.WorkingBufferSizeDefault
 
byte[] _buf1 = new byte[1]
 
System.IO.Stream _stream
 
CompressionStrategy Strategy = CompressionStrategy.Default
 

Properties

bool _wantCompress [get]
 
ZlibCodec z [get]
 
int bufferSize [get, set]
 
byte[] workingBuffer [get]
 
override System.Boolean CanRead [get]
 
override System.Boolean CanSeek [get]
 
override System.Boolean CanWrite [get]
 
override System.Int64 Length [get]
 
override long Position [get, set]
 

Private Attributes

bool nomoreinput = false
 

Member Enumeration Documentation

Enumerator
Writer 
Reader 
Undefined 

Constructor & Destructor Documentation

Zlib.ZlibBaseStream.ZlibBaseStream ( System.IO.Stream  stream,
CompressionMode  compressionMode,
CompressionLevel  level,
bool  leaveOpen 
)
inline

Member Function Documentation

void Zlib.ZlibBaseStream.ChangeDataToRead ( int  size)
inline
void Zlib.ZlibBaseStream.ChangeStream ( System.IO.Stream  stream)
inlinepackage
override void Zlib.ZlibBaseStream.Close ( )
inline
static void Zlib.ZlibBaseStream.CompressBuffer ( byte[]  b,
Stream  compressor 
)
inlinestatic
static void Zlib.ZlibBaseStream.CompressString ( String  s,
Stream  compressor 
)
inlinestatic
void Zlib.ZlibBaseStream.End ( )
inline
override void Zlib.ZlibBaseStream.Flush ( )
inline
override System.Int32 Zlib.ZlibBaseStream.Read ( System.Byte[]  buffer,
System.Int32  offset,
System.Int32  count 
)
inline
override System.Int64 Zlib.ZlibBaseStream.Seek ( System.Int64  offset,
System.IO.SeekOrigin  origin 
)
inline
override void Zlib.ZlibBaseStream.SetLength ( System.Int64  value)
inline
static byte [] Zlib.ZlibBaseStream.UncompressBuffer ( byte[]  compressed,
Stream  decompressor 
)
inlinestatic
static String Zlib.ZlibBaseStream.UncompressString ( byte[]  compressed,
Stream  decompressor 
)
inlinestatic
override void Zlib.ZlibBaseStream.Write ( System.Byte[]  buffer,
int  offset,
int  count 
)
inline

Member Data Documentation

byte [] Zlib.ZlibBaseStream._buf1 = new byte[1]
package
int Zlib.ZlibBaseStream._bufferSize = ZlibConstants.WorkingBufferSizeDefault
package
CompressionMode Zlib.ZlibBaseStream._compressionMode
package
FlushType Zlib.ZlibBaseStream._flushMode
package
bool Zlib.ZlibBaseStream._leaveOpen
package
CompressionLevel Zlib.ZlibBaseStream._level
package
System.IO.Stream Zlib.ZlibBaseStream._stream
package
StreamMode Zlib.ZlibBaseStream._streamMode = StreamMode.Undefined
package
byte [] Zlib.ZlibBaseStream._workingBuffer
package
ZlibCodec Zlib.ZlibBaseStream._z = null
package
int Zlib.ZlibBaseStream.DataToRead =int.MaxValue
package

A counter which tracks how much compressed data is left to go.

bool Zlib.ZlibBaseStream.nomoreinput = false
private
CompressionStrategy Zlib.ZlibBaseStream.Strategy = CompressionStrategy.Default
package

Property Documentation

bool Zlib.ZlibBaseStream._wantCompress
getpackage
int Zlib.ZlibBaseStream.bufferSize
getset
override System.Boolean Zlib.ZlibBaseStream.CanRead
get
override System.Boolean Zlib.ZlibBaseStream.CanSeek
get
override System.Boolean Zlib.ZlibBaseStream.CanWrite
get
override System.Int64 Zlib.ZlibBaseStream.Length
get
override long Zlib.ZlibBaseStream.Position
getset
byte [] Zlib.ZlibBaseStream.workingBuffer
getprivate
ZlibCodec Zlib.ZlibBaseStream.z
getprivate