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

Method WriteHash

src/libs/ec/cpp/ECFileConfig.h:93–96  ·  view source on GitHub ↗

* Writes a CMD4Hash object to the config file * * @param key the key to write to * @param hash the hash to be written * * @return true on success, false otherwise. */

Source from the content-addressed store, hash-verified

91 * @return true on success, false otherwise.
92 */
93 bool WriteHash(const wxString& key, const CMD4Hash& hash)
94 {
95 return wxFileConfig::Write(key, hash.IsEmpty() ? wxString("") : hash.Encode());
96 }
97};
98
99#endif /* ECFILECONFIG_H */

Callers 1

SaveConfigFileMethod · 0.45

Calls 3

wxStringClass · 0.50
IsEmptyMethod · 0.45
EncodeMethod · 0.45

Tested by

no test coverage detected