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_writer.cpp144 char header_buf[Record::header_size()]; in WriteRecord() local
149 header_p = header_buf; in WriteRecord()
151 if (!WriteData(header_buf, Record::header_size())) { in WriteRecord()
162 header_p = header_buf; in WriteRecord()
164 return WriteData(header_buf, Record::header_size()); in WriteRecord()
Drecord_file_reader.cpp256 char header_buf[Record::header_size()]; in ReadRecord() local
257 if (!Read(header_buf, Record::header_size())) { in ReadRecord()
260 RecordHeader header(header_buf); in ReadRecord()
266 char header_buf[Record::header_size()]; in ReadRecord() local
275 if (!Read(header_buf, Record::header_size())) { in ReadRecord()
278 header = RecordHeader(header_buf); in ReadRecord()
290 memcpy(p.get(), header_buf, Record::header_size()); in ReadRecord()