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

Function BuildPartFileCacheTag

src/ExternalConn.cpp:1137–1145  ·  view source on GitHub ↗

Same shape for partfiles.

Source from the content-addressed store, hash-verified

1135
1136// Same shape for partfiles.
1137static CECTag *BuildPartFileCacheTag(const void *file_v)
1138{
1139 const CPartFile *cur_file = static_cast<const CPartFile *>(file_v);
1140 CEC_PartFile_Tag *filetag = new CEC_PartFile_Tag(cur_file, EC_DETAIL_FULL);
1141 CPartFile_Encoder enc(cur_file);
1142 enc.ResetEncoder();
1143 enc.Encode(filetag);
1144 return filetag;
1145}
1146
1147
1148// Two daemon-wide caches. Each holds one pre-serialized blob per file

Callers

nothing calls this directly

Calls 2

ResetEncoderMethod · 0.45
EncodeMethod · 0.45

Tested by

no test coverage detected