MCPcopy Create free account
hub / github.com/MeisApps/pcbu-desktop / WriteBytes

Method WriteBytes

common/src/shell/Shell.cpp:162–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160}
161
162bool Shell::WriteBytes(const std::filesystem::path &path, const std::vector<uint8_t> &data) {
163 std::ofstream file(path, std::ios::out | std::ios::binary);
164 file.write(reinterpret_cast<const char *>(data.data()), (std::streamsize)data.size());
165 file.close();
166 return !file.fail() && !file.bad();
167}

Callers

nothing calls this directly

Calls 2

dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected