Class ZlibStream
- Namespace
- SharpCompress.Compressor.Deflate
- Assembly
- SharpCompress.dll
public class ZlibStream : Stream, IDisposable, IAsyncDisposable
- Inheritance
-
ZlibStream
- Implements
-
- Inherited Members
-
Constructors
ZlibStream(Stream, CompressionMode)
public ZlibStream(Stream stream, CompressionMode mode)
Parameters
stream
Stream
mode
CompressionMode
ZlibStream(Stream, CompressionMode, CompressionLevel)
public ZlibStream(Stream stream, CompressionMode mode, CompressionLevel level)
Parameters
stream
Stream
mode
CompressionMode
level
CompressionLevel
ZlibStream(Stream, CompressionMode, CompressionLevel, bool)
public ZlibStream(Stream stream, CompressionMode mode, CompressionLevel level, bool leaveOpen)
Parameters
stream
Stream
mode
CompressionMode
level
CompressionLevel
leaveOpen
bool
ZlibStream(Stream, CompressionMode, bool)
public ZlibStream(Stream stream, CompressionMode mode, bool leaveOpen)
Parameters
stream
Stream
mode
CompressionMode
leaveOpen
bool
Properties
BufferSize
public int BufferSize { get; set; }
Property Value
- int
CanRead
public override bool CanRead { get; }
Property Value
- bool
CanSeek
public override bool CanSeek { get; }
Property Value
- bool
CanWrite
public override bool CanWrite { get; }
Property Value
- bool
FlushMode
public virtual FlushType FlushMode { get; set; }
Property Value
- FlushType
Length
public override long Length { get; }
Property Value
- long
Position
public override long Position { get; set; }
Property Value
- long
TotalIn
public virtual long TotalIn { get; }
Property Value
- long
TotalOut
public virtual long TotalOut { get; }
Property Value
- long
Methods
Dispose(bool)
protected override void Dispose(bool disposing)
Parameters
disposing
bool
Flush()
public override void Flush()
Read(byte[], int, int)
public override int Read(byte[] buffer, int offset, int count)
Parameters
buffer
byte[]
offset
int
count
int
Returns
- int
Seek(long, SeekOrigin)
public override long Seek(long offset, SeekOrigin origin)
Parameters
offset
long
origin
SeekOrigin
Returns
- long
SetLength(long)
public override void SetLength(long value)
Parameters
value
long
Write(byte[], int, int)
public override void Write(byte[] buffer, int offset, int count)
Parameters
buffer
byte[]
offset
int
count
int