Searched refs:needRead (Results 1 – 3 of 3) sorted by relevance
/base/update/updater/services/package/pkg_manager/ |
D | pkg_stream.cpp | 75 int32_t FileStream::Read(PkgBuffer &data, size_t start, size_t needRead, size_t &readLen) in Read() argument 83 if (data.length < needRead) { in Read() 103 readLen = fread(data.buffer, 1, needRead, stream_); in Read() 209 int32_t MemoryMapStream::Read(PkgBuffer &data, size_t start, size_t needRead, size_t &readLen) in Read() argument 219 if (data.length < needRead) { in Read() 224 readLen = ((copyLen > needRead) ? needRead : copyLen); in Read() 228 if (memcpy_s(data.buffer, needRead, memMap_ + start, readLen) != EOK) { in Read() 229 … PKG_LOGE("Memcpy failed size:%zu, start:%zu copyLen:%zu %zu", needRead, start, copyLen, readLen); in Read() 295 int32_t FlowDataStream::Read(PkgBuffer &data, size_t start, size_t needRead, size_t &readLen) in Read() argument 302 if (data.length < needRead) { in Read() [all …]
|
D | pkg_stream.h | 33 int32_t Read(PkgBuffer &data, size_t start, size_t needRead, size_t &readLen) override in Read() argument 38 UNUSED(needRead); in Read() 96 int32_t Read(PkgBuffer &data, size_t start, size_t needRead, size_t &readLen) override; 124 int32_t Read(PkgBuffer &data, size_t start, size_t needRead, size_t &readLen) override; 174 int32_t Read(PkgBuffer &data, size_t start, size_t needRead, size_t &readLen) override in Read() argument 179 UNUSED(needRead); in Read() 237 … int32_t Read(Hpackage::PkgBuffer &data, size_t start, size_t needRead, size_t &readLen) override;
|
/base/update/updater/services/include/package/ |
D | pkg_manager.h | 63 virtual int32_t Read(PkgBuffer &data, size_t start, size_t needRead, size_t &readLen) = 0;
|