Home
last modified time | relevance | path

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

/system/core/adb/
Dtransport_fd.cpp109 auto header_buf = read_buffer_.take_front(sizeof(amessage)).coalesce(); in Run() local
110 CHECK_EQ(sizeof(amessage), header_buf.size()); in Run()
112 memcpy(read_header_.get(), header_buf.data(), sizeof(amessage)); in Run()
/system/extras/simpleperf/
Drecord_file_reader.cpp243 char header_buf[Record::header_size()]; in ReadRecord() local
244 if (!Read(header_buf, Record::header_size())) { in ReadRecord()
247 RecordHeader header(header_buf); in ReadRecord()
253 char header_buf[Record::header_size()]; in ReadRecord() local
262 if (!Read(header_buf, Record::header_size())) { in ReadRecord()
265 header = RecordHeader(header_buf); in ReadRecord()
277 memcpy(p.get(), header_buf, Record::header_size()); in ReadRecord()
Drecord_file_writer.cpp140 char header_buf[Record::header_size()]; in WriteRecord() local
145 header_p = header_buf; in WriteRecord()
147 if (!WriteData(header_buf, Record::header_size())) { in WriteRecord()
158 header_p = header_buf; in WriteRecord()
160 return WriteData(header_buf, Record::header_size()); in WriteRecord()