/base/update/updater/services/diffpatch/bzip2/ |
D | bzip2_adapter.cpp | 53 if (offset_ + dataSize_ + srcData.length > buffer_.size()) { in WriteData() 54 buffer_.resize(buffer_.size() + srcData.length); 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() 92 buffer_.resize(buffer_.size() + IGMDIFF_LIMIT_UNIT); in FlushData() 93 stream_.avail_out = buffer_.size() - offset_ - dataSize_; in FlushData() 94 next = reinterpret_cast<char*>(buffer_.data() + offset_ + dataSize_); in FlushData() 110 buffer_.resize(IGMDIFF_LIMIT_UNIT); in Open() [all …]
|
D | zip_adapter.cpp | 52 buffer_.resize(BUFFER_SIZE); in Open() 76 zstream_.avail_out = static_cast<uint32_t>(buffer_.size()); in WriteData() 77 zstream_.next_out = reinterpret_cast<unsigned char*>(buffer_.data()); in WriteData() 82 deflateLen = buffer_.size() - zstream_.avail_out; in WriteData() 84 ret = outStream_->Write(offset_, {buffer_.data(), deflateLen}, deflateLen); in WriteData() 91 zstream_.next_out = reinterpret_cast<unsigned char*>(buffer_.data()); in WriteData() 92 zstream_.avail_out = buffer_.size(); in WriteData() 113 zstream_.avail_out = buffer_.size(); in FlushData() 114 zstream_.next_out = reinterpret_cast<unsigned char*>(buffer_.data()); in FlushData() 119 deflateLen = buffer_.size() - zstream_.avail_out; in FlushData() [all …]
|
D | lz4_adapter.cpp | 74 buffer_.resize(outBuffSize); in Open() 81 …size_t dataSize = LZ4F_compressBegin(compressionContext_, buffer_.data(), buffer_.size(), &prefere… in Open() 86 int32_t ret = outStream_->Write(offset_, {buffer_.data(), dataSize}, dataSize); in Open() 165 buffer_.data(), buffer_.size(), srcData.buffer, srcData.length, nullptr); in CompressData() 172 ret = outStream_->Write(offset_, {buffer_.data(), dataSize}, dataSize); in CompressData() 192 … size_t dataSize = LZ4F_compressEnd(compressionContext_, buffer_.data(), buffer_.size(), nullptr); in FlushData() 197 int32_t ret = outStream_->Write(offset_, {buffer_.data(), dataSize}, dataSize); in FlushData() 227 buffer_.resize(static_cast<size_t>(bufferSize)); in Open() 228 int32_t ret = memcpy_s(buffer_.data(), buffer_.size(), &LZ4B_MAGIC_NUMBER, sizeof(int32_t)); in Open() 233 ret = outStream_->Write(offset_, {buffer_.data(), sizeof(int32_t)}, sizeof(int32_t)); in Open() [all …]
|
D | bzip2_adapter.h | 41 : BZip2Adapter(), offset_(offset), buffer_(buffer) {} in BZipBuffer2Adapter() 49 std::vector<uint8_t> &buffer_; variable 61 std::vector<char> buffer_ { 0 }; 87 : BZip2ReadAdapter(offset, length), buffer_(info) {} in BZip2BufferReadAdapter() 95 BlockBuffer buffer_ {};
|
D | zip_adapter.h | 41 std::vector<uint8_t> buffer_ {};
|
D | lz4_adapter.h | 40 std::vector<uint8_t> buffer_ {};
|
/base/web/webview/ohos_adapter/graphic_adapter/src/ |
D | surface_adapter_impl.cpp | 41 SurfaceBufferAdapterImpl::SurfaceBufferAdapterImpl(sptr<SurfaceBuffer> buffer) : buffer_(buffer) {} in SurfaceBufferAdapterImpl() 45 if (!buffer_) { in GetFileDescriptor() 49 return buffer_->GetFileDescriptor(); in GetFileDescriptor() 54 if (!buffer_) { in GetWidth() 58 return buffer_->GetWidth(); in GetWidth() 63 if (!buffer_) { in GetHeight() 67 return buffer_->GetHeight(); in GetHeight() 72 if (!buffer_) { in GetStride() 76 return buffer_->GetStride(); in GetStride() 81 if (!buffer_) { in GetFormat() [all …]
|
/base/update/updater/services/flow_update/update_bin/ |
D | bin_flow_update.cpp | 38 buffer_ = new uint8_t[maxBufSize_]; in BinFlowUpdate() 48 if (buffer_ != nullptr) { in ~BinFlowUpdate() 49 delete[] buffer_; in ~BinFlowUpdate() 50 buffer_ = nullptr; in ~BinFlowUpdate() 69 if (!headInit_ && UpdateBinHead(buffer_, curlen_) != 0) { in StartBinFlowUpdate() 77 if (auto ret = UpdateBinData(buffer_, curlen_); ret != 0) { in StartBinFlowUpdate() 89 if (memcpy_s(buffer_ + curlen_, maxBufSize_, data, copySize) != EOK) { in AddRemainData()
|
D | bin_flow_update.h | 63 uint8_t *buffer_ = nullptr; variable
|
/base/web/webview/ohos_adapter/camera_adapter/src/ |
D | camera_manager_adapter_impl.cpp | 679 …eBufferAdapterImpl::CameraSurfaceBufferAdapterImpl(sptr<SurfaceBuffer> buffer) : buffer_(buffer) {} in CameraSurfaceBufferAdapterImpl() 683 if (!buffer_) { in GetFileDescriptor() 687 return buffer_->GetFileDescriptor(); in GetFileDescriptor() 692 if (!buffer_) { in GetWidth() 696 return buffer_->GetWidth(); in GetWidth() 701 if (!buffer_) { in GetHeight() 705 return buffer_->GetHeight(); in GetHeight() 710 if (!buffer_) { in GetStride() 714 return buffer_->GetStride(); in GetStride() 719 if (!buffer_) { in GetFormat() [all …]
|
/base/update/updater/test/unittest/diffpatch/ |
D | bzip2_unittest.cpp | 34 explicit TestPatchWriter(std::vector<uint8_t> &buffer) : UpdatePatchWriter(), buffer_(buffer) {} in TestPatchWriter() 51 if ((start + bufferSize) > buffer_.size()) { in Write() 52 buffer_.resize(IGMDIFF_LIMIT_UNIT * ((start + bufferSize) / IGMDIFF_LIMIT_UNIT + 1)); in Write() 54 return memcpy_s(buffer_.data() + start, buffer_.size(), data.buffer, len); in Write() 58 std::vector<uint8_t> &buffer_; member in __anon0638c0560111::TestPatchWriter
|
/base/web/webview/ohos_adapter/graphic_adapter/include/ |
D | surface_adapter_impl.h | 47 sptr<SurfaceBuffer> buffer_ = nullptr;
|
/base/web/webview/ohos_adapter/camera_adapter/include/ |
D | camera_manager_adapter_impl.h | 65 sptr<SurfaceBuffer> buffer_ = nullptr;
|