Searched refs:srcBuffer (Results 1 – 7 of 7) sorted by relevance
/base/hiviewdfx/hidumper/frameworks/native/src/executor/ |
D | zip_output.cpp | 62 CompressBuffer* srcBuffer = srcBuffer_.get(); in Execute() local 64 if (!srcBuffer || !destBuffer) { in Execute() 78 if ((srcBuffer->offset + size) > MAX_COMPRESS_BUFFER_SIZE) { in Execute() 89 if (memcpy_s(srcBuffer->content + srcBuffer->offset, in Execute() 90 MAX_COMPRESS_BUFFER_SIZE - srcBuffer->offset, content, content_size) != EOK) { in Execute() 94 srcBuffer->offset = srcBuffer->offset + content_size; in Execute() 95 srcBuffer->content[srcBuffer->offset] = '\n'; in Execute() 96 srcBuffer->offset = srcBuffer->offset + 1; in Execute() 107 CompressBuffer* srcBuffer = srcBuffer_.get(); in CompressAndWriteToFd() local 109 if (!srcBuffer || !destBuffer) { in CompressAndWriteToFd() [all …]
|
/base/hiviewdfx/hidumper/frameworks/native/src/util/ |
D | dump_compressor.cpp | 33 DumpStatus DumpCompressor::Compress(CompressBuffer*& srcBuffer, CompressBuffer*& destBuffer) in Compress() argument 38 uint32_t bound = compressBound(srcBuffer->offset); in Compress() 55 size_t srcBufferOffset = srcBuffer->offset; in Compress() 71 …if (FillBuffer(flush, srcBuffer, buffInV, toRead, srcPos, srcBufferOffset) == DumpStatus::DUMP_FAI… in Compress() 92 DumpStatus DumpCompressor::FillBuffer(int& flush, CompressBuffer*& srcBuffer, char*& buffIn, in FillBuffer() argument 99 … if (memmove_s(buffIn, CHUNK, srcBuffer->content + src_pos, srcBufferOffset - src_pos) != EOK) { in FillBuffer() 106 if (memmove_s(buffIn, CHUNK, srcBuffer->content + src_pos, toRead) != EOK) { in FillBuffer()
|
/base/hiviewdfx/hidumper/frameworks/native/include/util/ |
D | dump_compressor.h | 48 DumpStatus Compress(CompressBuffer*& srcBuffer, CompressBuffer*& destBuffer); 51 DumpStatus FillBuffer(int& flush, CompressBuffer*& srcBuffer, char*& buffIn,
|
/base/update/updater/test/unittest/applypatch_test/ |
D | blockset_unittest.cpp | 101 std::vector<uint8_t> srcBuffer; variable 102 srcBuffer.resize(H_BLOCK_SIZE); 106 std::fill(srcBuffer.begin(), srcBuffer.end(), 0); 108 BlockSet::MoveBlock(srcBuffer, blk, tgtBuffer);
|
/base/security/device_auth/deps_adapter/os_adapter/impl/src/linux/ |
D | hc_file.c | 144 const char *srcBuffer = (const char *)src; in HcFileWrite() local 147 int writeCount = fwrite(srcBuffer + total, 1, srcSize - total, fp); in HcFileWrite()
|
/base/security/device_auth/deps_adapter/os_adapter/impl/src/liteos/mini/ |
D | hc_file_posix.c | 142 const char *srcBuffer = (const char *)src; in HcFileWrite() local 145 int writeCount = write(fp, srcBuffer + total, srcSize - total); in HcFileWrite()
|
/base/update/updater/services/applypatch/ |
D | block_set.cpp | 380 int32_t BlockSet::WriteDiffToBlock(const Command &cmd, std::vector<uint8_t> &srcBuffer, in WriteDiffToBlock() argument 394 …reinterpret_cast<u_char*>(srcBuffer.data()), srcBuffSize, reinterpret_cast<u_char*>(patchBuff), le… in WriteDiffToBlock() 418 …auto ret = UpdatePatch::UpdateApplyPatch::ApplyBlockPatch(patchInfo, {srcBuffer.data(), srcBuffSiz… in WriteDiffToBlock()
|