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.cpp75 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 …]
Dpkg_stream.h33 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/
Dpkg_manager.h63 virtual int32_t Read(PkgBuffer &data, size_t start, size_t needRead, size_t &readLen) = 0;