Home
last modified time | relevance | path

Searched refs:readSize (Results 1 – 11 of 11) sorted by relevance

/base/update/sys_installer/services/module_update/util/src/
Dmodule_utils.cpp142 ssize_t readSize = pread(fd, data, count, offset); in ReadFullyAtOffset() local
143 if (readSize <= 0) { in ReadFullyAtOffset()
146 data += readSize; in ReadFullyAtOffset()
147 count -= static_cast<size_t>(readSize); in ReadFullyAtOffset()
148 offset += readSize; in ReadFullyAtOffset()
/base/global/i18n_lite/frameworks/i18n/src/
Ddata_resource.cpp173 int32_t readSize = read(infile, cache, GLOBAL_RESOURCE_HEADER_LEFT); in ReadHeader() local
174 if (readSize != GLOBAL_RESOURCE_HEADER_LEFT) { in ReadHeader()
190 int32_t readSize = read(infile, locales, localeSize); in PrepareData() local
191 if (readSize < 0 || localeSize != static_cast<uint32_t>(readSize)) { in PrepareData()
277 int32_t readSize = read(infile, configs, resourceSize); in PrepareLocaleData() local
278 if (readSize != resourceSize) { in PrepareLocaleData()
410 int32_t readSize = read(infile, temp, length); in Retrieve() local
412 if ((readSize < 0) || (static_cast<uint32_t>(readSize) != length)) { in Retrieve()
/base/powermgr/thermal_manager/application/protector/src/
Dthermal_sensor_provision.cpp77 int32_t readSize; in ReadSysfsFile() local
83 readSize = read(fd, buf, size - 1); in ReadSysfsFile()
84 if (readSize < NUM_ZERO) { in ReadSysfsFile()
90 buf[readSize] = '\0'; in ReadSysfsFile()
/base/hiviewdfx/hiview/plugins/eventlogger/log_catcher/
Ddmesg_catcher.cpp73 int readSize = klogctl(SYSLOG_ACTION_READ_ALL, data, size); in DumpDmesgLog() local
74 if (readSize < 0) { in DumpDmesgLog()
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/src/
Dcert_manager_storage.c139 uint32_t readSize = CmFileRead(path, fileName, 0, data, fileSize); in CmStorageGetBuf() local
140 if (readSize == 0) { in CmStorageGetBuf()
/base/security/selinux_adapter/interfaces/policycoreutils/src/
Dcontexts_trie.c315 …uint32_t readSize = dataLen + sizeof(SharedMem); // space used for read Shar… in ReadParamFromSharedMem() local
316 currentPos += readSize; in ReadParamFromSharedMem()
320 memPtr = (SharedMem *)((char *)memPtr + readSize); in ReadParamFromSharedMem()
/base/security/permission_lite/services/pms/src/
Dpms_impl.c96 unsigned int readSize = buf.st_size; in ReadString() local
97 char *rst = (char *)HalMalloc(readSize); in ReadString()
103 if (memset_s(rst, readSize, 0x0, readSize) != EOK) { in ReadString()
116 int ret = read(fd, rst, readSize); in ReadString()
/base/powermgr/battery_manager/charger/src/
Dpower_supply_provider.cpp123 size_t readSize = read(fd, buf, size - 1); in ReadSysfsFile() local
124 buf[readSize] = '\0'; in ReadSysfsFile()
/base/global/resource_management_lite/frameworks/resmgr_lite/src/utils/
Dhap_parser.cpp201 uint32_t readSize = offset - startOffset; in ParseStringArray() local
202 if (readSize + 1 == arrLen) { in ParseStringArray()
206 if (readSize + 1 > arrLen) { in ParseStringArray()
/base/request/request/frameworks/js/napi/src/upload/
Dcurl_adp.cpp449 size_t readSize = fread(buffer, size, nitems, fData->fp); in ReadCallback() local
452 return readSize; in ReadCallback()
/base/global/resource_management/frameworks/resmgr/src/utils/
Dhap_parser.cpp389 uint32_t readSize = offset - startOffset; in ParseStringArray() local
390 if (readSize + 1 == arrLen) { in ParseStringArray()
394 if (readSize + 1 > arrLen) { in ParseStringArray()