MCPcopy Create free account
hub / github.com/amule-project/amule / PrintHashsetFromFile

Function PrintHashsetFromFile

src/utils/fileview/eD2kFiles.cpp:171–187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

169}
170
171static void PrintHashsetFromFile(const CFileDataIO& file, const wxString& prefix = "")
172{
173 cout << prefix << "FileHash : " << file.ReadHash() << '\n';
174
175 uint16_t parts = file.ReadUInt16();
176 cout << prefix << "Parts : " << parts << '\n';
177
178 cout << prefix << "HashSet : ";
179 for (uint16_t i = 0; i < parts; i++)
180 {
181 if (i) {
182 cout << ", ";
183 }
184 cout << file.ReadHash();
185 }
186 cout << '\n';
187}
188
189void DecodeKnownMet(const CFileDataIO& file)
190{

Callers 2

DecodeKnownMetFunction · 0.85
DecodePartMetFileFunction · 0.85

Calls 2

ReadUInt16Method · 0.80
ReadHashMethod · 0.45

Tested by

no test coverage detected