MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / DeserializeFileDB

Function DeserializeFileDB

src/addrdb.cpp:95–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93
94template <typename Data>
95bool DeserializeFileDB(const fs::path& path, Data& data)
96{
97 // open input file, and associate with CAutoFile
98 FILE *file = fsbridge::fopen(path, "rb");
99 CAutoFile filein(file, SER_DISK, CLIENT_VERSION);
100 if (filein.IsNull())
101 return error("%s: Failed to open file %s", __func__, path.string());
102
103 return DeserializeDB(filein, data);
104}
105
106}
107

Callers 1

ReadMethod · 0.85

Calls 4

fopenFunction · 0.85
errorFunction · 0.85
DeserializeDBFunction · 0.85
IsNullMethod · 0.45

Tested by

no test coverage detected