Skip to content

ZXSpectrumSnapshotFormat<TFile> Class ​

Definition ​

Base class for ZX Spectrum snapshot file formats with a specific file type.

c#
public abstract class ZXSpectrumSnapshotFormat<TFile> : ZXSpectrumSnapshotFormat
   where TFile : ZXSpectrumSnapshotFile

View source

Type Parameters ​

NameDescription
TFileThe type of snapshot file.

Constructors ​

NameDescription
ZXSpectrumSnapshotFormat(String, String)Base class for ZX Spectrum snapshot file formats with a specific file type.

Methods ​

NameDescription
Read(Byte[])Reads a snapshot file from a byte array.
Read(Stream)Reads a snapshot file from a stream.
ReadAsync(Stream, CancellationToken)Reads a snapshot file from a stream asynchronously.
WriteAsync(IOFile, IBinaryWriter)Writes a file to a IBinaryWriter asynchronously.
WriteAsync(TFile, IBinaryWriter)Writes a strongly typed snapshot file to a IBinaryWriter.