BinaryFile Constructors
Overloads
BinaryFile(FileInfo)
Initialises a new instance of the BinaryFile class from a file on disk.
public BinaryFile(FileInfo file);
View source
Parameters
BinaryFile(String, Stream)
Initialises a new instance of the BinaryFile class from a Stream containing the file.
public BinaryFile(string name, Stream file);
View source
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);
View source
Parameters