MCPcopy Create free account
hub / github.com/LUX-Core/lux / writeFile

Function writeFile

src/cpp-ethereum/libdevcore/CommonIO.h:67–67  ·  view source on GitHub ↗

Write the given binary data into the given file, replacing the file if it pre-exists.

Source from the content-addressed store, hash-verified

65void writeFile(std::string const& _file, bytesConstRef _data, bool _writeDeleteRename = false);
66/// Write the given binary data into the given file, replacing the file if it pre-exists.
67inline void writeFile(std::string const& _file, bytes const& _data, bool _writeDeleteRename = false) { writeFile(_file, bytesConstRef(&_data), _writeDeleteRename); }
68inline void writeFile(std::string const& _file, std::string const& _data, bool _writeDeleteRename = false) { writeFile(_file, bytesConstRef(_data), _writeDeleteRename); }
69
70/// Nicely renders the given bytes to a string, optionally as HTML.

Callers 12

openMethod · 0.85
writeMethod · 0.85
saveMethod · 0.85
fillDifficultyFunction · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85
executeTestMethod · 0.85
compileLLLFunction · 0.85
executeTestsFunction · 0.85
main.cppFile · 0.85
executeMethod · 0.85
writeFileMethod · 0.85

Calls

no outgoing calls

Tested by 6

fillDifficultyFunction · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68
executeTestMethod · 0.68
compileLLLFunction · 0.68
executeTestsFunction · 0.68