Method | Description | |
---|---|---|
Flush ( ) : void |
Flush the stream.
|
|
GZipStream ( Stream stream, CompressionMode mode, CompressionLevel level = CompressionLevel.Default, bool leaveOpen = false ) : System |
Create a This constructor allows the application to request that the captive stream remain open after the deflation or inflation occurs. By default, after As noted in the class documentation, the |
|
GZipStream ( Stream stream, CompressionMode mode, bool leaveOpen ) : System |
Create a This constructor allows the application to request that the captive stream remain open after the deflation or inflation occurs. By default, after The CompressionMode (Compress or Decompress) also establishes the "direction" of the stream. A See the other overloads of this constructor for example code. |
|
Read ( byte buffer, int offset, int count ) : int |
Read and decompress data from the source stream. With a |
|
Seek ( long offset, SeekOrigin origin ) : long |
Calling this method always throws a NotImplementedException.
|
|
SetLength ( long value ) : void |
Calling this method always throws a NotImplementedException.
|
|
Write ( byte buffer, int offset, int count ) : void |
Write data to the stream. If you wish to use the A |
Method | Description | |
---|---|---|
Dispose ( bool disposing ) : void |
Dispose the stream. This may or may not result in a |
Method | Description | |
---|---|---|
EmitHeader ( ) : int |
public GZipStream ( Stream stream, CompressionMode mode, CompressionLevel level = CompressionLevel.Default, bool leaveOpen = false ) : System | ||
stream | Stream | The stream which will be read or written. |
mode | CompressionMode | Indicates whether the GZipStream will compress or decompress. |
level | CompressionLevel | A tuning knob to trade speed for effectiveness. |
leaveOpen | bool | true if the application would like the stream to remain open after inflation/deflation. |
return | System |
public GZipStream ( Stream stream, CompressionMode mode, bool leaveOpen ) : System | ||
stream | Stream | The stream which will be read or written. This is called the "captive" stream in other places in this documentation. |
mode | CompressionMode | Indicates whether the GZipStream will compress or decompress. |
leaveOpen | bool | true if the application would like the base stream to remain open after inflation/deflation. |
return | System |
public Read ( byte buffer, int offset, int count ) : int | ||
buffer | byte | The buffer into which the decompressed data should be placed. |
offset | int | the offset within that data array to put the first byte read. |
count | int | the number of bytes to read. |
return | int |
public Seek ( long offset, SeekOrigin origin ) : long | ||
offset | long | This parameter is not used |
origin | SeekOrigin | This parameter is not used |
return | long |
public SetLength ( long value ) : void | ||
value | long | This parameter is not used |
return | void |
public Write ( byte buffer, int offset, int count ) : void | ||
buffer | byte | The buffer holding data to write to the stream. |
offset | int | the offset within that data array to find the first byte to write. |
count | int | the number of bytes to write. |
return | void |