Home
last modified time | relevance | path

Searched refs:memSize_ (Results 1 – 2 of 2) sorted by relevance

/base/update/updater/services/package/pkg_manager/
Dpkg_stream.cpp190 ReleaseMemory(memMap_, memSize_); in ~MemoryMapStream()
200 if (start > memSize_) { in Read()
225 if (start > memSize_) { in Write()
231 size_t copyLen = memSize_ - start; in Write()
236 int32_t ret = memcpy_s(memMap_ + currOffset_, memSize_ - currOffset_, data.buffer, size); in Write()
252 if (static_cast<size_t>(offset) > memSize_) { in Seek()
258 if (static_cast<size_t>(offset) > (memSize_ - currOffset_)) { in Seek()
268 auto memSize = static_cast<long long>(memSize_); in Seek()
Dpkg_stream.h112 memSize_(buffer.length), currOffset_(0), streamType_(streamType) {} in PkgStreamImpl()
128 return memSize_; in GetFileLength()
133 if (size != memSize_) { in Flush()
134 PKG_LOGE("Flush size %zu local size:%zu", size, memSize_); in Flush()
137 msync(static_cast<void *>(memMap_), memSize_, MS_ASYNC); in Flush()
146 buffer.length = memSize_; in GetBuffer()
152 size_t memSize_; variable