Skip to content

Z80CompressionStream Class

Definition

A stream that compresses or decompresses data using the Z80 snapshot compression format.

public sealed class Z80CompressionStream : Stream, IDisposable, IAsyncDisposable

View source

Constructors

Name Description
Z80CompressionStream(Stream, CompressionMode, Boolean, Boolean) Initialises a new instance of the Z80CompressionStream class.

Properties

Name Description
CanRead When overridden in a derived class, gets a value indicating whether the current stream supports reading.
CanSeek When overridden in a derived class, gets a value indicating whether the current stream supports seeking.
CanWrite When overridden in a derived class, gets a value indicating whether the current stream supports writing.
Length When overridden in a derived class, gets the length in bytes of the stream.
Position When overridden in a derived class, gets or sets the position within the current stream.

Methods

Name Description
Dispose(Boolean) Releases the unmanaged resources used by the Stream and optionally releases the managed resources.
Flush() When overridden in a derived class, clears all buffers for this stream and causes any buffered data to be written to the underlying device.
Read(Byte[], Int32, Int32) When overridden in a derived class, reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read.
Read(Span<Byte>) When overridden in a derived class, reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read.
Seek(Int64, SeekOrigin) When overridden in a derived class, sets the position within the current stream.
SetLength(Int64) When overridden in a derived class, sets the length of the current stream.
Write(Byte[], Int32, Int32) When overridden in a derived class, writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written.
Write(ReadOnlySpan<Byte>) When overridden in a derived class, writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written.