MCPcopy Create free account
hub / github.com/Parchive/par2cmdline / Open

Method Open

src/datablock.cpp:31–40  ·  view source on GitHub ↗

Open the file associated with the data block if is not already open

Source from the content-addressed store, hash-verified

29
30// Open the file associated with the data block if is not already open
31bool DataBlock::Open(void)
32{
33 if (diskfile == 0)
34 return false;
35
36 if (diskfile->IsOpen())
37 return true;
38
39 return diskfile->Open();
40}
41
42// Read some data at a specified position within a data block
43// into a buffer in memory

Callers

nothing calls this directly

Calls 1

IsOpenMethod · 0.80

Tested by

no test coverage detected