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

Method read_callback

framework/data_source/dataSourceIO.cpp:29–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27 }
28
29 int dataSourceIO::read_callback(void *arg, uint8_t *buffer, int size)
30 {
31 auto *pHandle = static_cast<dataSourceIO *>(arg);
32 // AF_LOGE("read_callback", "%s %d \n", __func__, size);
33 int ret = pHandle->mPDataSource->Read(buffer, size);
34 return ret ? ret : AVERROR_EOF;
35 }
36
37 int64_t dataSourceIO::seek_callback(void *arg, int64_t offset, int whence)
38 {

Callers

nothing calls this directly

Calls 1

ReadMethod · 0.45

Tested by

no test coverage detected