Home
last modified time | relevance | path

Searched refs:kHeaderSize (Results 1 – 3 of 3) sorted by relevance

/system/core/fastboot/
Dudp.cpp50 constexpr size_t kHeaderSize = 4; variable
79 uint8_t bytes_[kHeaderSize];
135 size_t max_data_length_ = kMinPacketSize - kHeaderSize;
198 max_data_length_ = packet_size - kHeaderSize; in InitializeProtocol()
260 if (!socket_->Send({{header->bytes(), kHeaderSize}, {tx_data, tx_length}})) { in SendSinglePacketHelper()
275 } else if (bytes < static_cast<ssize_t>(kHeaderSize)) { in SendSinglePacketHelper()
289 error->append(rx_packet_.data() + kHeaderSize, rx_packet_.data() + bytes); in SendSinglePacketHelper()
291 total_data_bytes += bytes - kHeaderSize; in SendSinglePacketHelper()
292 size_t rx_data_bytes = std::min<size_t>(bytes - kHeaderSize, rx_length); in SendSinglePacketHelper()
294 memcpy(rx_data, rx_packet_.data() + kHeaderSize, rx_data_bytes); in SendSinglePacketHelper()
/system/core/adb/
Dshell_service.h76 const char* data() const { return buffer_ + kHeaderSize; } in data()
77 char* data() { return buffer_ + kHeaderSize; } in data()
112 kHeaderSize = sizeof(Id) + sizeof(length_t) enumerator
Dshell_service_protocol.cpp35 if (!ReadFdExactly(fd_, buffer_, kHeaderSize)) { in Read()
61 return WriteFdExactly(fd_, buffer_, kHeaderSize + length); in Write()