| 170 | public: |
| 171 | |
| 172 | FileRelay(const string& path): |
| 173 | iofile(path, ios::in | ios::out | ios::binary), filename_copy(path) |
| 174 | { |
| 175 | if (!iofile) |
| 176 | throw std::runtime_error(path + ": Can't open file for reading"); |
| 177 | } |
| 178 | MediaPacket Read(size_t chunk) override { return FileRead(iofile, chunk, filename_copy); } |
| 179 | |
| 180 | void Write(const MediaPacket& data) override |
nothing calls this directly
no outgoing calls
no test coverage detected