MrKWatkins.Ast Help

BinaryFile Constructors

Overloads

Name

Description

BinaryFile(FileInfo)

Initialises a new instance of the BinaryFile class from a file on disk.

BinaryFile(String, Stream)

Initialises a new instance of the BinaryFile class from a Stream containing the file.

BinaryFile(String, IReadOnlyList<Byte>)

Initialises a new instance of the BinaryFile class from a list of bytes containing the file.

BinaryFile(FileInfo)

Initialises a new instance of the BinaryFile class from a file on disk.

public BinaryFile(FileInfo file);

Parameters

Name

Type

Description

file

FileInfo

A FileInfo with details a file on disk to load. The FullName will be used for Name.

BinaryFile(String, Stream)

Initialises a new instance of the BinaryFile class from a Stream containing the file.

public BinaryFile(string name, Stream file);

Parameters

Name

Type

Description

name

String

The name of the file.

file

Stream

A Stream containing the file. The stream will be read to the end and left open.

BinaryFile(String, IReadOnlyList<Byte>)

Initialises a new instance of the BinaryFile class from a list of bytes containing the file.

public BinaryFile(string name, IReadOnlyList<Byte> bytes);

Parameters

Name

Type

Description

name

String

The name of the file.

bytes

IReadOnlyList<Byte>

The contents of the file.

Last modified: 22 November 2024