MrKWatkins.Ast Help

BinaryFile Class

Definition

A binary SourceFile.

public sealed class BinaryFile : SourceFile, IEquatable<SourceFile>, IEqualityOperators<SourceFile, SourceFile, Boolean>

Constructors

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.

Properties

Name

Description

Bytes

The raw bytes of the file.

Methods

Name

Description

CreateEntireFilePosition()

Creates a BinaryFilePosition from this BinaryFile that represents the whole file.

CreatePosition(Int32, Int32)

Creates a BinaryFilePosition from this BinaryFile.

Last modified: 09 September 2024