Searched refs:readSize (Results 1 – 9 of 9) sorted by relevance
| /developtools/smartperf_host/trace_streamer/test/unittest/ |
| D | parser_pbreader_test.cpp | 48 constexpr size_t readSize = 1024; variable 56 std::unique_ptr<uint8_t[]> buf = std::make_unique<uint8_t[]>(readSize); 57 auto rsize = base::Read(fd, buf.get(), readSize); 90 constexpr size_t readSize = 1024 * 1024; variable 99 std::unique_ptr<uint8_t[]> buf = std::make_unique<uint8_t[]>(readSize); 100 auto rsize = base::Read(fd, buf.get(), readSize); 132 constexpr size_t readSize = 1024; variable 141 std::unique_ptr<uint8_t[]> buf = std::make_unique<uint8_t[]>(readSize); 142 auto rsize = base::Read(fd, buf.get(), readSize); 175 constexpr size_t readSize = 1024; variable [all …]
|
| /developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/zip/ |
| D | RandomAccessFileZipDataInput.java | 106 int readSize; in copyTo() local 110 readSize = fileChannel.read(buffer); in copyTo() 112 offsetInFile += readSize; in copyTo() 113 remaining -= readSize; in copyTo()
|
| /developtools/profiler/device/services/profiler_service/src/ |
| D | profiler_service.cpp | 440 uint64_t readSize = 0; in MergeStandaloneFile() local 442 while ((readSize = std::min(bufSize, fileSize)) > 0) { in MergeStandaloneFile() 443 fsFile.read(buf.data(), readSize); in MergeStandaloneFile() 444 fsTarget.write(buf.data(), readSize); in MergeStandaloneFile() 449 fileSize -= readSize; in MergeStandaloneFile() 451 SHA256_Update(&sha256Ctx, buf.data(), readSize); in MergeStandaloneFile()
|
| /developtools/profiler/device/plugins/native_daemon/src/ |
| D | utilities.cpp | 251 ssize_t readSize; in ReadFileToString() local 252 while ((readSize = read(fd.Get(), &buf[0], sizeof(buf))) > 0) { in ReadFileToString() 253 fileData.append(buf, readSize); in ReadFileToString() 255 return (readSize == 0) ? true : false; in ReadFileToString()
|
| D | symbols_file.cpp | 187 size_t readSize = 0; in ReadRoMemory() local 192 readSize = size; in ReadRoMemory() 204 readSize = size; in ReadRoMemory() 212 HLOGM("read %zu/%zu bytes at %" PRIx64 "(elf offset)", readSize, size, addr); in ReadRoMemory() 214 return readSize; in ReadRoMemory()
|
| /developtools/hiperf/src/ |
| D | utilities.cpp | 327 ssize_t readSize; in ReadFileToString() local 328 while ((readSize = read(fd.Get(), &buf[0], sizeof(buf))) > 0) { in ReadFileToString() 329 fileData.append(buf, readSize); in ReadFileToString() 331 return (readSize == 0) ? true : false; in ReadFileToString()
|
| D | symbols_file.cpp | 192 size_t readSize = 0; in ReadRoMemory() local 206 readSize = size; in ReadRoMemory() 218 readSize = size; in ReadRoMemory() 226 HLOGM("read %zu/%zu bytes at %" PRIx64 "(elf offset)", readSize, size, addr); in ReadRoMemory() 228 return readSize; in ReadRoMemory()
|
| /developtools/profiler/device/plugins/memory_plugin/src/ |
| D | memory_data_plugin.cpp | 422 int32_t readSize; in WriteProcinfoByPidfds() local 424 readSize = ReadFile(pidFds_[pid][FILE_STATUS]); in WriteProcinfoByPidfds() 425 if (readSize != RET_FAIL) { in WriteProcinfoByPidfds() 426 WriteProcess(processinfo, (char*)buffer_.get(), readSize, pid); in WriteProcinfoByPidfds()
|
| /developtools/hdc/src/common/ |
| D | serial_struct_define.h | 260 auto readSize = _parent.Read(bytes, sizeToRead); 261 _size_limit -= readSize; 262 return readSize; 1221 size_t readSize = std::min(size, _in.size() - _pos); 1222 if (memcpy_s(bytes, size, _in.data() + _pos, readSize) != EOK) { 1223 return readSize; 1225 _pos += readSize; 1226 return readSize;
|