| /llvm-project-15.0.7/libc/utils/testutils/ |
| H A D | FDReaderUnix.cpp | 40 for (int BytesRead; (BytesRead = ::read(pipefd[0], Buffer, ChunkSize));) { in match_written() local 41 if (BytesRead > 0) { in match_written() 42 PipeStr.insert(PipeStr.size(), Buffer, BytesRead); in match_written()
|
| /llvm-project-15.0.7/lldb/unittests/TestingSupport/Host/ |
| H A D | NativeProcessTestUtils.h | 74 size_t &BytesRead) /*override*/ { in ReadMemory() argument 77 BytesRead = 0; in ReadMemory() 80 BytesRead = ExpectedMemory->size(); in ReadMemory() 81 assert(BytesRead <= Size); in ReadMemory() 82 std::memcpy(Buf, ExpectedMemory->data(), BytesRead); in ReadMemory() 108 size_t BytesRead; in ReadMemoryWithoutTrap() local 110 T::ReadMemoryWithoutTrap(Addr, Data.data(), Data.size(), BytesRead); in ReadMemoryWithoutTrap() 113 Data.resize(BytesRead); in ReadMemoryWithoutTrap()
|
| /llvm-project-15.0.7/compiler-rt/lib/xray/ |
| H A D | xray_x86_64.cpp | 31 ssize_t BytesRead; in retryingReadSome() local 33 while (BytesToRead && (BytesRead = read(Fd, Begin, BytesToRead))) { in retryingReadSome() 34 if (BytesRead == -1) { in retryingReadSome() 41 TotalBytesRead += BytesRead; in retryingReadSome() 42 BytesToRead -= BytesRead; in retryingReadSome() 43 Begin += BytesRead; in retryingReadSome() 55 ssize_t BytesRead; in readValueFromFile() local 57 std::tie(BytesRead, Success) = retryingReadSome(Fd, Line, Line + BufSize); in readValueFromFile()
|
| /llvm-project-15.0.7/llvm/lib/Support/ |
| H A D | RandomNumberGenerator.cpp | 82 ssize_t BytesRead = read(Fd, Buffer, Size); in getRandomBytes() 83 if (BytesRead == -1) in getRandomBytes() 85 else if (BytesRead != static_cast<ssize_t>(Size)) in getRandomBytes()
|
| H A D | Path.cpp | 994 int BytesRead = 0, BytesWritten = 0; in copy_file_internal() local 996 BytesRead = read(ReadFD, Buf, BufSize); in copy_file_internal() 997 if (BytesRead <= 0) in copy_file_internal() 999 while (BytesRead) { in copy_file_internal() 1000 BytesWritten = write(WriteFD, Buf, BytesRead); in copy_file_internal() 1003 BytesRead -= BytesWritten; in copy_file_internal() 1010 if (BytesRead < 0 || BytesWritten < 0) in copy_file_internal() 1052 int BytesRead = 0; in md5_contents() local 1054 BytesRead = read(FD, Buf.data(), BufSize); in md5_contents() 1055 if (BytesRead <= 0) in md5_contents() [all …]
|
| /llvm-project-15.0.7/llvm/include/llvm/Bitstream/ |
| H A D | BitstreamReader.h | 168 unsigned BytesRead; in fillCurWord() local 170 BytesRead = sizeof(word_t); in fillCurWord() 176 BytesRead = BitcodeBytes.size() - NextChar; in fillCurWord() 178 for (unsigned B = 0; B != BytesRead; ++B) in fillCurWord() 181 NextChar += BytesRead; in fillCurWord() 182 BitsInCurWord = BytesRead * 8; in fillCurWord()
|
| H A D | BitstreamWriter.h | 168 ssize_t BytesRead = FS->read(Bytes, BytesFromDisk); in BackpatchWord() local 169 (void)BytesRead; // silence warning in BackpatchWord() 170 assert(BytesRead >= 0 && static_cast<size_t>(BytesRead) == BytesFromDisk); in BackpatchWord()
|
| /llvm-project-15.0.7/llvm/unittests/Support/ |
| H A D | Path.cpp | 1941 if (Expected<size_t> BytesRead = fs::readNativeFile( in TEST_F() local 1943 return Buf.substr(0, *BytesRead); in TEST_F() 1945 return BytesRead.takeError(); in TEST_F() 2008 if (Expected<size_t> BytesRead = fs::readNativeFileSlice( in TEST_F() local 2010 return Buf.substr(0, *BytesRead); in TEST_F() 2012 return BytesRead.takeError(); in TEST_F()
|
| /llvm-project-15.0.7/llvm/lib/Support/Windows/ |
| H A D | Path.inc | 1267 DWORD BytesRead = 0; 1268 if (::ReadFile(FileHandle, Buf.data(), BytesToRead, &BytesRead, Overlap)) 1269 return BytesRead; 1273 return BytesRead;
|
| /llvm-project-15.0.7/bolt/lib/Profile/ |
| H A D | DataAggregator.cpp | 334 Expected<size_t> BytesRead = sys::fs::readNativeFileSlice( in checkPerfDataMagic() local 336 if (!BytesRead || *BytesRead != 7) in checkPerfDataMagic()
|