BinaryFile Constructors
Overloads
Name | Description |
---|---|
Initialises a new instance of the BinaryFile class from a file on disk. | |
Initialises a new instance of the BinaryFile class from a Stream containing the file. | |
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
BinaryFile(String, Stream)
Initialises a new instance of the BinaryFile class from a Stream containing the file.
public BinaryFile(string name, Stream file);
Parameters
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 | The name of the file. | |
bytes | The contents of the file. |
Last modified: 22 November 2024