| 65 | } |
| 66 | |
| 67 | Result<BytesView> FileReader::read() { |
| 68 | return read(0, std::nullopt); |
| 69 | } |
| 70 | |
| 71 | static 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 {})", |
nothing calls this directly
no test coverage detected