Home
last modified time | relevance | path

Searched refs:offset_ (Results 1 – 24 of 24) sorted by relevance

/base/telephony/core_service/services/sim/src/
Dtag_service.cpp122 if (!hasNext_ || offset_ >= data_.size()) { in Next()
130 for (; offset_ < data_.size(); ++offset_, ++order) { in Next()
131 const auto res = TagFunc(data_.at(offset_), order, tag_); in Next()
136 ++offset_; in Next()
142 if (offset_ >= data_.size()) { in Next()
148 for (; offset_ < data_.size(); ++offset_, ++order) { in Next()
149 const auto res = LengthFunc(data_.at(offset_), order, length_); in Next()
154 ++offset_; in Next()
160 dataOffset_ = offset_; in Next()
161 offset_ += static_cast<size_t>(length_); in Next()
[all …]
/base/hiviewdfx/faultloggerd/frameworks/unwinder/
Ddfx_memory_file.cpp44 munmap(&data_[-offset_], size_ + offset_); in Clear()
64 offset_ = offset & static_cast<uint64_t>ALIGN_BYTES(getpagesize()); in Init()
73 if (!__builtin_add_overflow(size, offset_, &maxSize) && maxSize < size_) { in Init()
84 data_ = &reinterpret_cast<uint8_t*>(map)[offset_]; in Init()
85 size_ -= offset_; in Init()
/base/update/updater/services/diffpatch/bzip2/
Dlz4_adapter.cpp28 : DeflateAdapter(), outStream_(outStream), offset_(offset) in Lz4Adapter()
86 int32_t ret = outStream_->Write(offset_, {buffer_.data(), dataSize}, dataSize); in Open()
91 offset_ += dataSize; in Open()
172 ret = outStream_->Write(offset_, {buffer_.data(), dataSize}, dataSize); in CompressData()
178 offset_ += dataSize; in CompressData()
197 int32_t ret = outStream_->Write(offset_, {buffer_.data(), dataSize}, dataSize); in FlushData()
202 offset_ += dataSize; in FlushData()
203 offset = offset_; in FlushData()
233 ret = outStream_->Write(offset_, {buffer_.data(), sizeof(int32_t)}, sizeof(int32_t)); in Open()
238 offset_ += sizeof(int32_t); in Open()
[all …]
Dzip_adapter.cpp25 : DeflateAdapter(), outStream_(outStream), offset_(offset) in ZipAdapter()
84 ret = outStream_->Write(offset_, {buffer_.data(), deflateLen}, deflateLen); in WriteData()
89 offset_ += deflateLen; in WriteData()
121 ret = outStream_->Write(offset_, {buffer_.data(), deflateLen}, deflateLen); in FlushData()
126 offset_ += deflateLen; in FlushData()
144 offset = offset_; in FlushData()
Dbzip2_adapter.cpp53 if (offset_ + dataSize_ + srcData.length > buffer_.size()) { in WriteData()
56 char *next = reinterpret_cast<char*>(buffer_.data() + offset_ + dataSize_); in WriteData()
57 stream_.avail_out = buffer_.size() - offset_ - dataSize_; in WriteData()
84 stream_.avail_out = buffer_.size() - offset_ - dataSize_; in FlushData()
85 char *next = reinterpret_cast<char*>(buffer_.data() + offset_ + dataSize_); in FlushData()
93 stream_.avail_out = buffer_.size() - offset_ - dataSize_; in FlushData()
94 next = reinterpret_cast<char*>(buffer_.data() + offset_ + dataSize_); in FlushData()
103 PATCH_DEBUG("FlushData offset_ %zu dataSize_ %zu ", offset_, dataSize_); in FlushData()
190 PATCH_DEBUG("BZip2BufferReadAdapter::Open %zu dataLength_ %zu", offset_, dataLength_); in Open()
198 stream_.next_in = reinterpret_cast<char*>(buffer_.buffer + offset_); in Open()
Dbzip2_adapter.h41 : BZip2Adapter(), offset_(offset), buffer_(buffer) {} in BZipBuffer2Adapter()
47 size_t offset_ { 0 };
68 BZip2ReadAdapter(size_t offset, size_t length) : offset_(offset), dataLength_(length) {} in BZip2ReadAdapter()
79 size_t offset_ { 0 };
Dzip_adapter.h44 size_t offset_; variable
Dlz4_adapter.h43 size_t offset_; variable
/base/update/updater/services/applypatch/
Draw_writer.h30 RawWriter(const std::string path, uint64_t offset) : fd_(-1), path_(path), offset_(offset) {} in RawWriter()
34 offset_ = 0; in ~RawWriter()
49 off64_t offset_; variable
Draw_writer.cpp53 int ret = lseek64(fd, offset_, SEEK_SET); in WriteInternal()
55 LOG(ERROR) << "RawWriter: failed to seek file to " << offset_ << " : " << strerror(errno); in WriteInternal()
68 offset_ += static_cast<off64_t>(len); in WriteInternal()
Dpartition_record.cpp83 offset_ = newOffset; in RecordPartitionSetOffset()
84 if (lseek(fd, PARTITION_RECORD_START + offset_, SEEK_SET) < 0) { in RecordPartitionSetOffset()
103 offset_ += static_cast<off_t>(sizeof(PartitionRecordInfo)); in RecordPartitionSetInfo()
108 if (write(fd, &offset_, sizeof(off_t)) != static_cast<ssize_t>(sizeof(off_t))) { in RecordPartitionSetInfo()
134 … if (offset_ + static_cast<off_t>(sizeof(PartitionRecordInfo)) < PARTITION_UPDATER_RECORD_SIZE) { in RecordPartitionUpdateStatus()
139 LOG(DEBUG) << "PartitionRecord: offset is " << offset_; in RecordPartitionUpdateStatus()
141 LOG(WARNING) << "PartitionRecord: partition record overflow, offset = " << offset_; in RecordPartitionUpdateStatus()
/base/update/updater/services/include/applypatch/
Dpartition_record.h67 offset_ = 0; in PartitionRecord()
79 off_t offset_; variable
/base/update/updater/services/diffpatch/diff/
Dblocks_diff.h90 …BlocksStreamDiff(std::fstream &stream, size_t offset) : BlocksDiff(), stream_(stream), offset_(off… in BlocksStreamDiff()
98 size_t offset_ { 0 };
104 : BlocksDiff(), patchData_(patchData), offset_(offset) {} in BlocksBufferDiff()
112 size_t offset_ { 0 };
Dblocks_diff.cpp202 offset_ + patchOffset); in CreateBZip2Adapter()
226 if (patchData_.size() <= headerLen + offset_) { in WritePatchHeader()
231 int32_t ret = memcpy_s(patchData_.data() + offset_, patchData_.size(), BSDIFF_MAGIC, in WritePatchHeader()
238 BlockBuffer data = {patchData_.data() + offset_ + headerLen, patchData_.size()}; in WritePatchHeader()
241 BlockBuffer diffData = {patchData_.data() + offset_ + headerLen, patchData_.size()}; in WritePatchHeader()
244 BlockBuffer newData = {patchData_.data() + offset_ + headerLen, patchData_.size()}; in WritePatchHeader()
255 if (offset_ > static_cast<size_t>(numeric_limits<std::fstream::off_type>::max())) { in WritePatchHeader()
260 stream_.seekp(offset_, std::ios::beg); in WritePatchHeader()
/base/global/resource_management_lite/frameworks/resmgr_lite/include/
Dres_desc.h110 uint32_t offset_; variable
176 uint32_t offset_; variable
/base/hiviewdfx/faultloggerd/frameworks/unwinder/include/
Ddfx_memory_file.h39 size_t offset_ = 0; variable
/base/global/resource_management/frameworks/resmgr/include/
Dres_desc.h111 uint32_t offset_; variable
181 uint32_t offset_; variable
/base/telephony/core_service/services/sim/include/
Dtag_service.h47 size_t offset_ = 0; variable
/base/telephony/core_service/services/network_search/include/
Dnitz_update.h59 static int32_t offset_; variable
/base/telephony/core_service/services/network_search/src/
Dnitz_update.cpp49 int32_t NitzUpdate::offset_ = 0; member in OHOS::Telephony::NitzUpdate
80 offset_ = networkTime.offset; in ProcessNitzUpdate()
257 int32_t offset = ONE_HOUR_TO_SECOND * ONE_SECOND_TO_MILLISECOND * offset_; in ProcessTimeZone()
/base/global/resource_management_lite/frameworks/resmgr_lite/src/
Dres_desc.cpp213 return FormatString("[id:%u, offset:%u, data:%s]", id_, offset_, in ToString()
246 …std::string ret = FormatString("offset:%u, keyParamsCount:%u, keyParams:", offset_, keyParamsCount… in ToString()
/base/global/resource_management/frameworks/resmgr/src/
Dres_desc.cpp280 return FormatString("[id:%u, offset:%u, data:%s]", id_, offset_, in ToString()
325 …std::string ret = FormatString("offset:%u, keyParamsCount:%u, keyParams:", offset_, keyParamsCount… in ToString()
/base/global/resource_management_lite/frameworks/resmgr_lite/src/utils/
Dhap_parser.cpp276 uint32_t ipOffset = ip->offset_; in ParseId()
338 uint32_t idOffset = key->offset_; in ParseKey()
/base/global/resource_management/frameworks/resmgr/src/utils/
Dhap_parser.cpp464 uint32_t ipOffset = ip->offset_; in ParseId()
523 uint32_t idOffset = key->offset_; in ParseKey()