Table of Contents

Class GZipStream

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

Constructors

GZipStream(Stream, CompressionMode)

public GZipStream(Stream stream, CompressionMode mode)

Parameters

stream Stream
mode CompressionMode

GZipStream(Stream, CompressionMode, CompressionLevel)

public GZipStream(Stream stream, CompressionMode mode, CompressionLevel level)

Parameters

stream Stream
mode CompressionMode
level CompressionLevel

GZipStream(Stream, CompressionMode, CompressionLevel, bool)

public GZipStream(Stream stream, CompressionMode mode, CompressionLevel level, bool leaveOpen)

Parameters

stream Stream
mode CompressionMode
level CompressionLevel
leaveOpen bool

GZipStream(Stream, CompressionMode, bool)

public GZipStream(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

Comment

public string Comment { get; set; }

Property Value

string

Crc32

public int Crc32 { get; }

Property Value

int

FileName

public string FileName { get; set; }

Property Value

string

FlushMode

public virtual FlushType FlushMode { get; set; }

Property Value

FlushType

LastModified

public DateTime? LastModified { get; set; }

Property Value

DateTime?

Length

public override long Length { get; }

Property Value

long

Position

public override long Position { get; set; }

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