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