Searched refs:BLOCK_SIZE (Results 1 - 10 of 10) sorted by relevance
/foundation/filemanagement/app_file_service/frameworks/native/backup_ext/src/ |
H A D | untar_file.cpp | 104 if (fseeko(tarFilePtr_, pos_ + tarFileBlockCnt_ * BLOCK_SIZE, SEEK_SET) != 0) { in ReadLongName() 167 tarFileBlockCnt_ = (tarFileSize_ + BLOCK_SIZE - 1) / BLOCK_SIZE; in HandleTarBuffer() 221 if (buff == nullptr || buffLen != BLOCK_SIZE || header == nullptr) { in CheckIfTarBlockValid() 225 char tailBuff[BLOCK_SIZE] = {0}; in CheckIfTarBlockValid() 226 size_t tailRead = fread(tailBuff, 1, BLOCK_SIZE, tarFilePtr_); in CheckIfTarBlockValid() 227 if (tailRead == BLOCK_SIZE && IsEmptyBlock(tailBuff)) { in CheckIfTarBlockValid() 250 char buff[BLOCK_SIZE] = {0}; in ParseTarFile() 259 readCnt_ = fread(buff, 1, BLOCK_SIZE, tarFilePtr_); in ParseTarFile() 260 if (readCnt_ < BLOCK_SIZE) { in ParseTarFile() [all...] |
H A D | tar_file.cpp | 293 if (WriteTarHeader(hdr) != BLOCK_SIZE) { in AddFile() 302 if (WriteTarHeader(hdr) != BLOCK_SIZE) { in AddFile() 398 if ((size % BLOCK_SIZE) > 0) { in CompleteBlock() 399 int append = BLOCK_SIZE - (size % BLOCK_SIZE); in CompleteBlock() 451 buffer.resize(BLOCK_SIZE); in SetCheckSum() 453 for (uint32_t index = 0; index < BLOCK_SIZE; index++) { in SetCheckSum() 516 buffer.resize(BLOCK_SIZE); in WriteTarHeader() 518 int ret = WriteAll(buffer, BLOCK_SIZE); in WriteTarHeader() 519 if (ret != BLOCK_SIZE) { in WriteTarHeader() [all...] |
/foundation/filemanagement/app_file_service/tests/unittests/backup_ext/ |
H A D | untar_file_sup_test.cpp | 96 char buff[BLOCK_SIZE] = {0}; in HWTEST_F() 305 char buff[BLOCK_SIZE] = {0}; in HWTEST_F() 311 for (int i = 0; i < BLOCK_SIZE; i++) { in HWTEST_F() 315 buffLen = BLOCK_SIZE; in HWTEST_F()
|
/foundation/ai/neural_network_runtime/frameworks/native/neural_network_runtime/ops/ |
H A D | space_to_batch_nd_builder.cpp | 31 static const int BLOCK_SIZE = 2; member 51 if (tensor->GetElementCount() != BLOCK_SIZE) { in SetBlockShape()
|
/foundation/graphic/graphic_surface/surface/src/ |
H A D | buffer_utils.cpp | 32 constexpr size_t BLOCK_SIZE = 1024 * 1024; // 1 MB block size member 339 size_t num_blocks = totalSize / BLOCK_SIZE; in CloneBuffer() 340 size_t last_block_size = totalSize % BLOCK_SIZE; in CloneBuffer() 365 size_t length_to_copy = blocks_to_copy * BLOCK_SIZE; in CloneBuffer()
|
/foundation/filemanagement/app_file_service/frameworks/native/backup_ext/include/ |
H A D | tar_file.h | 49 const uint32_t BLOCK_SIZE = 512; member
|
/foundation/arkui/ace_engine/test/unittest/core/pattern/slider/ |
H A D | slider_pattern_test_ng.cpp | 91 const SizeT<Dimension> BLOCK_SIZE(BLOCK_SIZE_WIDTH, BLOCK_SIZE_HEIGHT);
|
H A D | slider_Extend_test_ng.cpp | 93 const SizeT<Dimension> BLOCK_SIZE(BLOCK_SIZE_WIDTH, BLOCK_SIZE_HEIGHT);
|
H A D | slider_test_ng.cpp | 90 const SizeT<Dimension> BLOCK_SIZE(BLOCK_SIZE_WIDTH, BLOCK_SIZE_HEIGHT);
|
H A D | slider_modifier_test_ng.cpp | 83 const SizeT<Dimension> BLOCK_SIZE(BLOCK_SIZE_WIDTH, BLOCK_SIZE_HEIGHT);
|
Completed in 15 milliseconds