Lines Matching defs:write
9 // Test a utility that can write out XRay FDR Mode formatted trace files.
26 static size_t write(support::endian::Writer &OS, Tuple &&T) {
27 OS.write(std::get<Index>(T));
28 return sizeof(std::get<Index>(T)) + IndexedWriter<Index + 1>::write(OS, T);
36 static size_t write(support::endian::Writer &OS, Tuple &&) {
44 // we ensure this is the case when we write out the first byte of the record.
48 OS.write(FirstByte);
49 auto Bytes = IndexedWriter<0>::write(OS, T);
50 assert(Bytes <= 15 && "Must only ever write at most 16 byte metadata!");
53 OS.write('\0');
66 // For endian-correctness, we need to write these fields in the order they
68 OS.write(H.Version);
69 OS.write(H.Type);
70 OS.write(BitField);
71 OS.write(H.CycleFrequency);
74 OS.write(FreeFormBytes);
100 OS.write(Bytes);
109 OS.write(Bytes);
118 OS.write(Bytes);
145 OS.write(TypeRecordFuncId);
146 OS.write(R.delta());