MCPcopy Create free account
hub / github.com/alibaba/CicadaPlayer / pollData

Function pollData

framework/WebAssemblyPlayer/WABitStreamDecoder.cpp:227–245  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

225static const int POLL_SIZE = 1024 * 1024;
226
227static bool pollData()
228{
229 int size = POLL_SIZE;
230
231 if (status == status_idle) {
232 size *= 2;
233 }
234
235 if (pollDataCallBack) {
236 int ret = pollDataCallBack(nullptr);
237 AF_LOGD("poll data size is %d\n", ret);
238
239 if (ret == -EAGAIN || (ret < size && ret > 0)) {
240 return false;
241 }
242 }
243
244 return true;
245}
246
247class timerSetter
248{

Callers 2

onPollDataMethod · 0.85
pull_onceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected