Home
last modified time | relevance | path

Searched refs:needRead (Results 1 – 3 of 3) sorted by relevance

/base/update/updater/services/package/pkg_manager/
Dpkg_stream.cpp70 int32_t FileStream::Read(const PkgBuffer &data, size_t start, size_t needRead, size_t &readLen) in Read() argument
76 if (data.length < needRead) { in Read()
89 readLen = fread(data.buffer, 1, needRead, stream_); in Read()
194 int32_t MemoryMapStream::Read(const PkgBuffer &data, size_t start, size_t needRead, size_t &readLen) in Read() argument
204 if (data.length < needRead) { in Read()
211 readLen = ((copyLen > needRead) ? needRead : copyLen); in Read()
212 if (memcpy_s(data.buffer, needRead, memMap_ + currOffset_, readLen) != EOK) { in Read()
213 … PKG_LOGE("Memcpy failed size:%zu, start:%zu copyLen:%zu %zu", needRead, start, copyLen, readLen); in Read()
Dpkg_stream.h34 int32_t Read(const PkgBuffer &data, size_t start, size_t needRead, size_t &readLen) override in Read() argument
39 UNUSED(needRead); in Read()
87 int32_t Read(const PkgBuffer &data, size_t start, size_t needRead, size_t &readLen) override;
115 int32_t Read(const PkgBuffer &data, size_t start, size_t needRead, size_t &readLen) override;
165 int32_t Read(const PkgBuffer &data, size_t start, size_t needRead, size_t &readLen) override in Read() argument
170 UNUSED(needRead); in Read()
/base/update/updater/services/include/package/
Dpkg_manager.h192 virtual int32_t Read(const PkgBuffer &data, size_t start, size_t needRead, size_t &readLen) = 0;