Table of Contents

Class DeflateStream

Namespace
SharpCompress.Compressors.Deflate
Assembly
SharpCompress.dll
public class DeflateStream : Stream, IDisposable, IAsyncDisposable
Inheritance
DeflateStream
Implements
Inherited Members

Constructors

DeflateStream(Stream, CompressionMode, CompressionLevel, bool)

public DeflateStream(Stream stream, CompressionMode mode, CompressionLevel level = CompressionLevel.Default, bool leaveOpen = false)

Parameters

stream Stream
mode CompressionMode
level CompressionLevel
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

InputBuffer

public MemoryStream InputBuffer { get; }

Property Value

MemoryStream

Length

public override long Length { get; }

Property Value

long

Position

public override long Position { get; set; }

Property Value

long

Strategy

public CompressionStrategy Strategy { get; set; }

Property Value

CompressionStrategy

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