메소드 | 설명 | |
---|---|---|
Flush ( ) : void |
Flush the stream.
|
|
GZipStream ( Stream stream ) : System |
Create a GZipStream using the specified CompressionMode and the specified CompressionLevel, and explicitly specify whether the stream should be left open after Deflation or Inflation. This constructor allows the application to request that the captive stream remain open after the deflation or inflation occurs. By default, after Close() is called on the stream, the captive stream is also closed. In some cases this is not desired, for example if the stream is a memory stream that will be re-read after compressed data has been written to it. Specify true for the leaveOpen parameter to leave the stream open. As noted in the class documentation, the CompressionMode (Compress or Decompress) also establishes the "direction" of the stream. A GZipStream with CompressionMode.Compress works only through Write(). A GZipStream with CompressionMode.Decompress works only through Read(). |
|
Read ( byte buffer, int offset, int count ) : int |
Read and decompress data from the source stream. With a GZipStream, decompression is done through reading. |
|
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 |
메소드 | 설명 | |
---|---|---|
Dispose ( bool disposing ) : void |
Dispose the stream. This may or may not result in a Close() call on the captive stream. See the ctor's with leaveOpen parameters for more information. |
public GZipStream ( Stream stream ) : System | ||
stream | Stream | The stream which will be read or written. |
리턴 | 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. |
리턴 | int |
public Seek ( long offset, SeekOrigin origin ) : long | ||
offset | long | irrelevant; it will always throw! |
origin | SeekOrigin | irrelevant; it will always throw! |
리턴 | long |
public SetLength ( long value ) : void | ||
value | long | irrelevant; this method will always throw! |
리턴 | void |
public Write ( byte buffer, int offset, int count ) : void | ||
buffer | byte | |
offset | int | |
count | int | |
리턴 | void |