Lines Matching refs:proto_utils
76 PERFETTO_DCHECK(size < proto_utils::kMaxMessageLength); in AppendBytes()
78 uint8_t buffer[proto_utils::kMaxSimpleFieldEncodedSize]; in AppendBytes()
80 pos = proto_utils::WriteVarInt(proto_utils::MakeTagLengthDelimited(field_id), in AppendBytes()
82 pos = proto_utils::WriteVarInt(static_cast<uint32_t>(size), pos); in AppendBytes()
97 PERFETTO_DCHECK(size < proto_utils::kMaxMessageLength); in AppendScatteredBytes()
99 uint8_t buffer[proto_utils::kMaxSimpleFieldEncodedSize]; in AppendScatteredBytes()
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()
125 PERFETTO_DCHECK(size_ < proto_utils::kMaxMessageLength); in Finalize()
127 proto_utils::WriteRedundantVarInt(size_ - size_already_written_, in Finalize()
146 uint8_t data[proto_utils::kMaxTagEncodedSize]; in BeginNestedMessageInternal()
147 uint8_t* data_end = proto_utils::WriteVarInt( in BeginNestedMessageInternal()
148 proto_utils::MakeTagLengthDelimited(field_id), data); in BeginNestedMessageInternal()
158 stream_writer_->ReserveBytes(proto_utils::kMessageLengthFieldSize)); in BeginNestedMessageInternal()
159 size_ += proto_utils::kMessageLengthFieldSize; in BeginNestedMessageInternal()