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

Method read

valdi_core/src/valdi_core/cpp/Utils/DiskUtils.cpp:67–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67Result<BytesView> FileReader::read() {
68 return read(0, std::nullopt);
69}
70
71static Error outOfBOundsLoad(const std::string& pathStr, size_t byteOffset, size_t toReadSize, size_t fileSize) {
72 return Error(STRING_FORMAT("Out of bounds read {} (asked byte offest {} with size {}, file size is {})",

Callers

nothing calls this directly

Calls 9

outOfBOundsLoadFunction · 0.85
ErrorClass · 0.70
valueMethod · 0.65
readMethod · 0.65
has_valueMethod · 0.45
resizeMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45
toBytesViewMethod · 0.45

Tested by

no test coverage detected