Skip to content

IOFileFormat<TFile> Class ​

Definition ​

Base class for file formats with a strongly typed file type.

c#
public abstract class IOFileFormat<TFile> : IOFileFormat
   where TFile : IOFile

View source

Type Parameters ​

NameDescription
TFileThe type of file for this format.

Constructors ​

NameDescription
IOFileFormat(String, String)Base class for file formats with a strongly typed file type.

Methods ​

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