MCPcopy Create free account
hub / github.com/Snapchat/Valdi / store

Method store

valdi_core/src/valdi_core/cpp/Utils/DiskUtils.cpp:171–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

169}
170
171Result<Void> DiskUtils::store(const Path& path, const BytesView& bytes) {
172 return store(path, bytes.asStringView());
173}
174
175Result<Void> DiskUtils::store(const Path& path, std::string_view bytes) {
176 auto pathStr = path.toString();

Callers

nothing calls this directly

Calls 10

storeFunction · 0.85
asStringViewMethod · 0.80
ErrorClass · 0.70
VoidClass · 0.70
toStringMethod · 0.65
openMethod · 0.65
writeMethod · 0.65
closeMethod · 0.65
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected