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

Method Write

testing/testmedia.cpp:180–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

178 MediaPacket Read(size_t chunk) override { return FileRead(iofile, chunk, filename_copy); }
179
180 void Write(const MediaPacket& data) override
181 {
182 iofile.write(data.payload.data(), data.payload.size());
183 }
184
185 bool IsOpen() override { return !!iofile; }
186 bool End() override { return iofile.eof(); }

Callers

nothing calls this directly

Calls 2

dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected