Home
last modified time | relevance | path

Searched refs:kMessageLengthFieldSize (Results 1 – 8 of 8) sorted by relevance

/external/perfetto/src/protozero/
Dmessage_unittest.cc237 uint8_t root_msg_size[proto_utils::kMessageLengthFieldSize] = {}; in TEST_F()
308 uint8_t msg1_size[proto_utils::kMessageLengthFieldSize] = {}; in TEST_F()
309 uint8_t msg2_size[proto_utils::kMessageLengthFieldSize] = {}; in TEST_F()
310 uint8_t msg3_size[proto_utils::kMessageLengthFieldSize] = {}; in TEST_F()
370 memset(size_msg_1, 0, proto_utils::kMessageLengthFieldSize); in TEST_F()
375 memset(size_msg_2, 0, proto_utils::kMessageLengthFieldSize); in TEST_F()
393 uint8_t msg_size[proto_utils::kMessageLengthFieldSize] = {}; in TEST_F()
Dmessage.cc158 stream_writer_->ReserveBytes(proto_utils::kMessageLengthFieldSize)); in BeginNestedMessageInternal()
159 size_ += proto_utils::kMessageLengthFieldSize; in BeginNestedMessageInternal()
Dproto_utils_unittest.cc156 uint8_t buf[kMessageLengthFieldSize]; in TEST()
/external/perfetto/include/perfetto/protozero/
Dproto_utils.h112 constexpr size_t kMessageLengthFieldSize = 4; variable
113 constexpr size_t kMaxMessageLength = (1u << (kMessageLengthFieldSize * 7)) - 1;
185 for (size_t i = 0; i < kMessageLengthFieldSize; ++i) { in WriteRedundantVarInt()
186 const uint8_t msb = (i < kMessageLengthFieldSize - 1) ? 0x80 : 0; in WriteRedundantVarInt()
/external/perfetto/src/tracing/core/
Dtrace_writer_impl.cc31 using protozero::proto_utils::kMessageLengthFieldSize;
90 static_assert(kPacketHeaderSize == kMessageLengthFieldSize, in NewTracePacket()
157 cur_hdr + kMessageLengthFieldSize <= cur_chunk_.end(); in GetNewBuffer()
Dtrace_writer_for_testing.cc93 stream_.ReserveBytes(protozero::proto_utils::kMessageLengthFieldSize)); in NewTracePacket()
Dtrace_buffer.cc838 std::min(packet_begin + protozero::proto_utils::kMessageLengthFieldSize, in ReadNextPacketInChunk()
/external/perfetto/src/perfetto_cmd/
Dpacket_writer.cc36 using protozero::proto_utils::kMessageLengthFieldSize;