MCPcopy Create free account
hub / github.com/bytedance/Fastbot_Android / SaveFile

Function SaveFile

native/thirdpart/flatbuffers/util.h:440–442  ·  view source on GitHub ↗

Save data "buf" into file "name" returning true if successful, false otherwise. If "binary" is false data is written using ifstream's text mode, otherwise data is written with no transcoding.

Source from the content-addressed store, hash-verified

438// data is written using ifstream's text mode, otherwise
439// data is written with no transcoding.
440inline bool SaveFile(const char *name, const std::string &buf, bool binary) {
441 return SaveFile(name, buf.c_str(), buf.size(), binary);
442}
443
444// Functionality for minimalistic portable path handling.
445

Callers 3

GenerateBinaryFunction · 0.70
GenerateFBSFunction · 0.70
SaveFileMethod · 0.50

Calls 2

c_strMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected