Visualization Library 2.0.0-b5
A lightweight C++ OpenGL middleware for 2D/3D graphics
|
[Download] [Tutorials] [All Classes] [Grouped Classes] |
Implements a compressed Stream, in GZip (.gz) format. More...
Public Member Functions | |
GZipStream (string fileName, CompressLevel level) | |
Creates a new file as a writeable GZipStream More... | |
GZipStream (string fileName) | |
Opens an existing file as a readable GZipStream More... | |
void | Dispose () |
Closes the external file handle More... | |
override int | Read (byte[] buffer, int offset, int count) |
Attempts to read a number of bytes from the stream. More... | |
override int | ReadByte () |
Attempts to read a single byte from the stream. More... | |
override void | Write (byte[] buffer, int offset, int count) |
Writes a number of bytes to the stream More... | |
override void | WriteByte (byte value) |
Writes a single byte to the stream More... | |
override void | SetLength (long value) |
Not supported. More... | |
override long | Seek (long offset, SeekOrigin origin) |
Not suppported. More... | |
override void | Flush () |
Flushes the GZipStream . More... | |
Properties | |
override bool | CanRead [get] |
Returns true of this stream can be read from, false otherwise More... | |
override bool | CanSeek [get] |
Returns false. More... | |
override bool | CanWrite [get] |
Returns true if this tsream is writeable, false otherwise More... | |
override long | Position [get, set] |
Gets/sets the current position in the GZipStream . More... | |
override long | Length [get] |
Gets the size of the stream. More... | |
Implements a compressed Stream, in GZip (.gz) format.
Definition at line 17 of file GZipStream.cs.
|
inline |
Creates a new file as a writeable GZipStream
fileName | The name of the compressed file to create |
level | The compression level to use when adding data |
ZLibException | If an error occurred in the internal zlib function |
Definition at line 53 of file GZipStream.cs.
|
inline |
Opens an existing file as a readable GZipStream
fileName | The name of the file to open |
ZLibException | If an error occurred in the internal zlib function |
Definition at line 66 of file GZipStream.cs.
References DotZLib.GZipStream.CanRead.
|
inline |
Closes the external file handle
Definition at line 125 of file GZipStream.cs.
References DotZLib.GZipStream.CanRead, and DotZLib.GZipStream.Read().
|
inline |
Flushes the GZipStream
.
In this implementation, this method does nothing. This is because excessive flushing may degrade the achievable compression rates.
Definition at line 265 of file GZipStream.cs.
References DotZLib.GZipStream.Position.
Attempts to read a number of bytes from the stream.
buffer | The destination data buffer |
offset | The index of the first destination byte in buffer |
count | The number of bytes requested |
ArgumentNullException | If buffer is null |
ArgumentOutOfRangeException | If count or offset are negative |
ArgumentException | If offset + count is > buffer.Length |
NotSupportedException | If this stream is not readable. |
ObjectDisposedException | If this stream has been disposed. |
Definition at line 154 of file GZipStream.cs.
Referenced by DotZLib.GZipStream.Dispose().
|
inline |
Attempts to read a single byte from the stream.
Definition at line 181 of file GZipStream.cs.
References DotZLib.GZipStream.CanRead.
Not suppported.
offset | |
origin |
NotSupportedException | Always thrown |
Definition at line 255 of file GZipStream.cs.
Not supported.
value |
NotSupportedException | Always thrown |
Definition at line 243 of file GZipStream.cs.
Referenced by DotZLib.GZipStream.WriteByte().
Writes a number of bytes to the stream
buffer | |
offset | |
count |
ArgumentNullException | If buffer is null |
ArgumentOutOfRangeException | If count or offset are negative |
ArgumentException | If offset + count is > buffer.Length |
NotSupportedException | If this stream is not writeable. |
ObjectDisposedException | If this stream has been disposed. |
Definition at line 199 of file GZipStream.cs.
References DotZLib.GZipStream.CanWrite.
Writes a single byte to the stream
value | The byte to add to the stream. |
NotSupportedException | If this stream is not writeable. |
ObjectDisposedException | If this stream has been disposed. |
Definition at line 226 of file GZipStream.cs.
References DotZLib.GZipStream.CanWrite, and DotZLib.GZipStream.SetLength().
|
get |
Returns true of this stream can be read from, false otherwise
Definition at line 81 of file GZipStream.cs.
Referenced by DotZLib.GZipStream.Dispose(), DotZLib.GZipStream.GZipStream(), and DotZLib.GZipStream.ReadByte().
|
get |
Returns false.
Definition at line 93 of file GZipStream.cs.
|
get |
Returns true if this tsream is writeable, false otherwise
Definition at line 104 of file GZipStream.cs.
Referenced by DotZLib.GZipStream.Write(), and DotZLib.GZipStream.WriteByte().
|
get |
Gets the size of the stream.
Not suppported.
In this implementation this property is not supported
NotSupportedException | Always thrown |
Definition at line 293 of file GZipStream.cs.
|
getset |
Gets/sets the current position in the GZipStream
.
Not suppported.
In this implementation this property is not supported
NotSupportedException | Always thrown |
Definition at line 276 of file GZipStream.cs.
Referenced by DotZLib.GZipStream.Flush().
Visualization Library 2.0.0-b5 Reference Documentation
Updated on Mon Feb 10 2020 02:45:02.
© Copyright Michele Bosi. All rights reserved.