Skip to content

BinaryFile Class ​

Definition ​

A binary SourceFile.

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

View source

Constructors ​

NameDescription
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 ​

NameDescription
BytesThe raw bytes of the file.

Methods ​

NameDescription
CreateEntireFilePosition()Creates a BinaryFilePosition from this BinaryFile that represents the whole file.
CreatePosition(Int32, Int32)Creates a BinaryFilePosition from this BinaryFile.