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

Function onLoadFromFdError

valdi_core/src/valdi_core/cpp/Utils/DiskUtils.cpp:139–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137}
138
139static Error onLoadFromFdError(int fd, const char* error) {
140 return Valdi::Error(STRING_FORMAT("Failed to load from fd '{}': {}", fd, error));
141}
142
143Result<BytesView> DiskUtils::loadFromFd(int fd) {
144 auto stat = statFromFd(fd);

Callers 1

loadFromFdMethod · 0.85

Calls 1

ErrorClass · 0.70

Tested by

no test coverage detected