| 87 | } |
| 88 | |
| 89 | size_t FileHandle::Write(const char *buffer, size_t size) { |
| 90 | avio_write(avio, (const unsigned char *)buffer, size); |
| 91 | avio_flush(avio); |
| 92 | if (avio->error < 0) |
| 93 | throw FFMS_Exception(error_source, FFMS_ERROR_FILE_WRITE, |
| 94 | "Failed to write to '" + filename + "': " + AVErrorToString(avio->error)); |
| 95 | return size; |
| 96 | } |
| 97 | |
| 98 | int64_t FileHandle::Size() { |
| 99 | int64_t size = avio_size(avio); |
nothing calls this directly
no test coverage detected