MCPcopy Create free account
hub / github.com/FFMS/ffms2 / Write

Method Write

src/core/filehandle.cpp:89–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87}
88
89size_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
98int64_t FileHandle::Size() {
99 int64_t size = avio_size(avio);

Callers

nothing calls this directly

Calls 2

FFMS_ExceptionClass · 0.85
AVErrorToStringFunction · 0.85

Tested by

no test coverage detected