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

Method load

valdi_core/src/valdi_core/cpp/Utils/DiskUtils.cpp:121–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119}
120
121Result<BytesView> DiskUtils::load(const Path& path) {
122 return load(path, 0, std::nullopt);
123}
124
125Result<BytesView> DiskUtils::load(const Path& path, size_t byteOffset, std::optional<size_t> size) {
126 FileReader reader(path);

Callers

nothing calls this directly

Calls 4

loadFunction · 0.85
openMethod · 0.65
readMethod · 0.65
closeMethod · 0.65

Tested by

no test coverage detected