Home
last modified time | relevance | path

Searched refs:bytes_to_read (Results 1 – 4 of 4) sorted by relevance

/device/google/cuttlefish/guest/commands/bt_vhci_forwarder/hci/
Dh4_packetizer.cc60 ssize_t bytes_to_read = h4_parser_.BytesRequested(); in OnDataReady() local
61 std::vector<uint8_t> buffer(bytes_to_read); in OnDataReady()
65 bytes_read = read(fd, buffer.data(), bytes_to_read); in OnDataReady()
Dh4_parser.cc107 size_t bytes_to_read = BytesRequested(); in Consume() local
115 static_cast<int>(bytes_to_read)); in Consume()
/device/google/cuttlefish/host/commands/assemble_cvd/
Dvendor_dlkm_utils.cc535 const auto bytes_to_read = std::min<size_t>(bytes_remain, buf1.size()); in FileEquals() local
536 if (fd1->Read(buf1.data(), bytes_to_read) != bytes_to_read) { in FileEquals()
540 if (!fd2->Read(buf2.data(), bytes_to_read)) { in FileEquals()
544 if (memcmp(buf1.data(), buf2.data(), bytes_to_read)) { in FileEquals()
/device/google/cuttlefish/common/libs/fs/
Dshared_fd_stream.cpp35 constexpr size_t bytes_to_read = kBufferSize - kUngetSize; in underflow() local
47 bytes_to_read); in underflow()