Home
last modified time | relevance | path

Searched refs:BLOCK_SIZE (Results 1 – 12 of 12) sorted by relevance

/base/update/packaging_tools/
Dbuild_pkcs7.py34 BLOCK_SIZE = 8192 variable
65 while remain_len > BLOCK_SIZE:
66 hash_sha256.update(package_file.read(BLOCK_SIZE))
67 remain_len -= BLOCK_SIZE
141 while remain_len > BLOCK_SIZE:
142 f_signed.write(f_unsign.read(BLOCK_SIZE))
143 remain_len -= BLOCK_SIZE
Dbuild_module_img.py24 BLOCK_SIZE = 4096 variable
56 … size += sum([roundup(os.path.getsize(os.path.join(root, name)), BLOCK_SIZE) for name in files])
71 while size > BLOCK_SIZE:
72 blocknum = size // BLOCK_SIZE
73 level_size = roundup(blocknum * HASH_SIZE, BLOCK_SIZE)
84 partition_size = img_size + get_hash_tree_size(img_size) + BLOCK_SIZE
Dcreate_signed_data.py19 from build_pkcs7 import BLOCK_SIZE, sign_digest
33 while chunk := file.read(BLOCK_SIZE):
Dcreate_update_package.py49 BLOCK_SIZE = 8192 variable
197 while remain_len > BLOCK_SIZE:
198 hash_sha256.update(package_file.read(BLOCK_SIZE))
199 remain_len -= BLOCK_SIZE
209 while remain_len > BLOCK_SIZE:
210 hash_sha256.update(package_file.read(BLOCK_SIZE))
211 remain_len -= BLOCK_SIZE
/base/hiviewdfx/hiview/base/event_store/utility/reader/
Dsys_event_doc_reader.cpp184 return ((curPos - HEADER_SIZE) % pageSize_ + BLOCK_SIZE) >= pageSize_; in HasReadPageEnd()
194 if (contentSize <= BLOCK_SIZE) { in ReadContent()
291 if (memcpy_s(event, eventSize, reinterpret_cast<char*>(&eventSize), BLOCK_SIZE) != EOK) { in BuildRawEvent()
296 uint32_t eventPos = BLOCK_SIZE; in BuildRawEvent()
309 if (memcpy_s(event + eventPos, eventSize - eventPos, content + BLOCK_SIZE + SEQ_SIZE, in BuildRawEvent()
310 contentSize - BLOCK_SIZE - SEQ_SIZE) != EOK) { in BuildRawEvent()
350 int64_t seq = *(reinterpret_cast<int64_t*>(content + BLOCK_SIZE)); in TryToAddEntry()
351 int64_t ts = *(reinterpret_cast<int64_t*>(content + BLOCK_SIZE + SEQ_SIZE)); in TryToAddEntry()
/base/update/updater/services/package/pkg_package/
Dpkg_gzipfile.cpp33 constexpr int32_t BLOCK_SIZE = 8; variable
157 PkgBuffer buffer(BLOCK_SIZE); in Pack()
160 …ret = outStream->Write(buffer, BLOCK_SIZE, fileInfo_.fileInfo.dataOffset + fileInfo_.fileInfo.pack… in Pack()
165 encodeLen = fileInfo_.fileInfo.packedSize + BLOCK_SIZE; in Pack()
175 PkgBuffer buffer(BLOCK_SIZE); // Read last 8 bytes at the end of package in CheckFileInfo()
176 … = inStream->Read(buffer, context.packedSize + fileInfo_.fileInfo.dataOffset, BLOCK_SIZE, readLen); in CheckFileInfo()
294 size_t blockOffset = inStream->GetFileLength() - BLOCK_SIZE; in DecodeHeader()
/base/hiviewdfx/hiview/base/event_store/include/
Dbase_def.h27 #define BLOCK_SIZE sizeof(uint32_t) macro
/base/update/updater/services/flashd/
Dpartition.cpp64 std::vector<uint8_t> buffer(BLOCK_SIZE, 0); in DoErase()
/base/hiviewdfx/hiview/base/event_store/utility/writer/
Dsys_event_doc_writer.cpp31 constexpr uint32_t RAW_DATA_OFFSET = BLOCK_SIZE + MAX_DOMAIN_LEN + MAX_EVENT_NAME_LEN;
140 contentSize = dataSize - RAW_DATA_OFFSET + BLOCK_SIZE + SEQ_SIZE + CRC_SIZE; in GetContentSize()
/base/startup/init/services/modules/trace/
Dinit_trace.c39 #define BLOCK_SIZE 4096 macro
391 char buffer[BLOCK_SIZE]; in DumpTrace()
393 bytesRead = TEMP_FAILURE_RETRY(read(traceFd, buffer, BLOCK_SIZE)); in DumpTrace()
/base/hiviewdfx/hiview/base/event_store/dao/
Ddoc_query.cpp101 InnerFieldStruct innerField = *(reinterpret_cast<InnerFieldStruct*>(content + BLOCK_SIZE)); in IsContainInnerConds()
/base/hiviewdfx/hitrace/cmd/src/
Dhitrace_cmd.cpp59 const int BLOCK_SIZE = 4096; variable
691 char buffer[BLOCK_SIZE]; in DumpTrace()
693 bytesRead = TEMP_FAILURE_RETRY(read(traceFd, buffer, BLOCK_SIZE)); in DumpTrace()