DARTFile.this

A file set by filename should be create by the BlockFile before it can be used as a DARTFile

class DARTFile
this
(
const HashNet net
,
string filename
,
const Flag!"read_only" read_only = No.read_only
)

Parameters

net HashNet

Is the network object is for Hashing etc..

filename string

File name of the dart which much be created via the BlockFile.create method

Examples

enum BLOCK_SIZE=0x80; // Block size use in the BlockFile
enum filename="some_filename.DART";
auto net= new SomeNet;
auto blockfile=BlockFile.create(filename, "Some description text", BLOCK_SIZE);
// Open the DART File
auto dartfile=new DARTFile(net, filename);