MCPcopy Create free account
hub / github.com/Haivision/srt / FileSource

Method FileSource

testing/testmedia.cpp:122–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120public:
121
122 FileSource(const string& path): ifile(path, ios::in | ios::binary), filename_copy(path)
123 {
124 if (!ifile)
125 throw std::runtime_error(path + ": Can't open file for reading");
126 }
127
128 MediaPacket Read(size_t chunk) override { return FileRead(ifile, chunk, filename_copy); }
129

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected