Lines Matching refs:buf

181 static void Append2LE(uint8_t* buf, uint16_t val) {  in Append2LE()  argument
182 *buf++ = static_cast<uint8_t>(val); in Append2LE()
183 *buf++ = static_cast<uint8_t>(val >> 8); in Append2LE()
187 static void Append4LE(uint8_t* buf, uint32_t val) { in Append4LE() argument
188 *buf++ = static_cast<uint8_t>(val); in Append4LE()
189 *buf++ = static_cast<uint8_t>(val >> 8); in Append4LE()
190 *buf++ = static_cast<uint8_t>(val >> 16); in Append4LE()
191 *buf++ = static_cast<uint8_t>(val >> 24); in Append4LE()
195 static void Append8LE(uint8_t* buf, uint64_t val) { in Append8LE() argument
196 *buf++ = static_cast<uint8_t>(val); in Append8LE()
197 *buf++ = static_cast<uint8_t>(val >> 8); in Append8LE()
198 *buf++ = static_cast<uint8_t>(val >> 16); in Append8LE()
199 *buf++ = static_cast<uint8_t>(val >> 24); in Append8LE()
200 *buf++ = static_cast<uint8_t>(val >> 32); in Append8LE()
201 *buf++ = static_cast<uint8_t>(val >> 40); in Append8LE()
202 *buf++ = static_cast<uint8_t>(val >> 48); in Append8LE()
203 *buf++ = static_cast<uint8_t>(val >> 56); in Append8LE()
593 static uint64_t ReadBytes(uint8_t* buf, size_t bytes) { in ReadBytes() argument
596 ret |= static_cast<uint64_t>(buf[i]) << (i * 8); in ReadBytes()
601 void Trace::DumpBuf(uint8_t* buf, size_t buf_size, TraceClockSource clock_source) { in DumpBuf() argument
602 uint8_t* ptr = buf + kTraceHeaderLength; in DumpBuf()
603 uint8_t* end = buf + buf_size; in DumpBuf()
668 uint8_t buf[7]; in FinishTracing() local
669 Append2LE(buf, 0); in FinishTracing()
670 buf[2] = kOpTraceSummary; in FinishTracing()
671 Append4LE(buf + 3, static_cast<uint32_t>(header.length())); in FinishTracing()
672 WriteToBuf(buf, sizeof(buf)); in FinishTracing()