Searched refs:memSize_ (Results 1 – 2 of 2) sorted by relevance
/base/update/updater/services/package/pkg_manager/ |
D | pkg_stream.cpp | 205 ReleaseMemory(memMap_, memSize_); in ~MemoryMapStream() 215 if (start > memSize_) { in Read() 242 if (start > memSize_) { in Write() 248 size_t copyLen = memSize_ - start; in Write() 253 int32_t ret = memcpy_s(memMap_ + currOffset_, memSize_ - currOffset_, data.buffer, size); in Write() 269 if (static_cast<size_t>(offset) > memSize_) { in Seek() 275 if (static_cast<size_t>(offset) > (memSize_ - currOffset_)) { in Seek() 285 auto memSize = static_cast<long long>(memSize_); in Seek()
|
D | pkg_stream.h | 121 memSize_(buffer.length), currOffset_(0), streamType_(streamType) {} in PkgStreamImpl() 137 return memSize_; in GetFileLength() 142 if (size != memSize_) { in Flush() 143 PKG_LOGE("Flush size %zu local size:%zu", size, memSize_); in Flush() 146 msync(static_cast<void *>(memMap_), memSize_, MS_ASYNC); in Flush() 155 buffer.length = memSize_; in GetBuffer() 161 size_t memSize_; variable
|