Home
last modified time | relevance | path

Searched refs:WriteVarInt (Results 1 – 9 of 9) sorted by relevance

/external/perfetto/src/protozero/
Dproto_utils_unittest.cc112 uint8_t* res = WriteVarInt<uint64_t>(exp.int_value, buf); in TEST()
118 WriteVarInt<uint32_t>(static_cast<uint32_t>(exp.int_value), buf); in TEST()
131 uint8_t* res = WriteVarInt<int8_t>(-100, buf); in TEST()
137 uint8_t* res = WriteVarInt<int16_t>(-100, buf); in TEST()
143 uint8_t* res = WriteVarInt<int32_t>(-100, buf); in TEST()
149 uint8_t* res = WriteVarInt<int64_t>(-100, buf); in TEST()
Dmessage.cc80 pos = proto_utils::WriteVarInt(proto_utils::MakeTagLengthDelimited(field_id), in AppendBytes()
82 pos = proto_utils::WriteVarInt(static_cast<uint32_t>(size), pos); in AppendBytes()
101 pos = proto_utils::WriteVarInt(proto_utils::MakeTagLengthDelimited(field_id), in AppendScatteredBytes()
103 pos = proto_utils::WriteVarInt(static_cast<uint32_t>(size), pos); in AppendScatteredBytes()
147 uint8_t* data_end = proto_utils::WriteVarInt( in BeginNestedMessageInternal()
/external/perfetto/include/perfetto/protozero/
Dmessage.h103 pos = proto_utils::WriteVarInt(proto_utils::MakeTagVarInt(field_id), pos); in AppendVarInt()
105 pos = proto_utils::WriteVarInt(value, pos); in AppendVarInt()
125 pos = proto_utils::WriteVarInt(proto_utils::MakeTagVarInt(field_id), pos); in AppendTinyVarInt()
139 pos = proto_utils::WriteVarInt(proto_utils::MakeTagFixed<T>(field_id), pos); in AppendFixed()
Dproto_utils.h149 inline uint8_t* WriteVarInt(T value, uint8_t* target) { in WriteVarInt() function
/external/perfetto/src/tracing/test/
Dfake_packet.cc27 using protozero::proto_utils::WriteVarInt;
52 WriteVarInt(size - 2, &header_[0]); in FakePacketFragment()
79 uint8_t* end = WriteVarInt(payload_.size(), &header_[0]); in FakePacketFragment()
/external/perfetto/src/tracing/core/
Dtrace_packet.cc52 using protozero::proto_utils::WriteVarInt; in GetProtoPreamble()
59 ptr = WriteVarInt(size(), ptr); in GetProtoPreamble()
Dtrace_writer_for_testing.cc85 uint8_t* data_end = protozero::proto_utils::WriteVarInt( in NewTracePacket()
/external/perfetto/src/perfetto_cmd/
Dpacket_writer.cc39 using protozero::proto_utils::WriteVarInt;
57 ptr = WriteVarInt(tag, ptr); in GetPreamble()
58 ptr = WriteVarInt(sz, ptr); in GetPreamble()
Dperfetto_cmd.cc165 using protozero::proto_utils::WriteVarInt;