Skip to content

ResourceFormat<TFile> Class

Definition

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

public abstract class ResourceFormat<TFile> : ResourceFormat
   where TFile : ResourceFile

View source

Type Parameters

Name Description
TFile The concrete file type.

Constructors

Name Description
ResourceFormat(String, String) Base class for resource formats with a strongly typed file type.

Methods

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