Searched refs:readOnce (Results 1 – 1 of 1) sorted by relevance
/base/update/updater/services/package/pkg_manager/ |
D | pkg_stream.cpp | 315 uint32_t readOnce = 0; in Read() local 316 if (ReadFromRingBuf(buffer, needRead - readLen, readOnce) != PKG_SUCCESS) { in Read() 320 if (buffer == nullptr || readOnce == 0) { in Read() 321 PKG_LOGE("Fail to read header, readOnce: %d", readOnce); in Read() 324 if (memcpy_s(data.buffer + readLen, readOnce, buffer, readOnce) != EOK) { in Read() 325 PKG_LOGE("Memcpy failed size:%zu, copyLen:%zu", needRead, readOnce); in Read() 328 readLen += readOnce; in Read()
|