Home
last modified time | relevance | path

Searched refs:ProtoWireType (Results 1 - 5 of 5) sorted by relevance

/developtools/smartperf_host/trace_streamer/src/proto_reader/include/
H A Dproto_reader.h34 const std::map<ProtoWireType, uint32_t> fixedTypeToSizeMap_ = {{ProtoWireType::kFixed32, sizeof(uint32_t)},
35 {ProtoWireType::kFixed64, sizeof(uint64_t)}};
105 template <ProtoWireType wireType, typename cppType>
111 static_assert(wireType != ProtoWireType::kLengthDelimited, "invalid type"); in PackedRepeatedDataAreaIterator()
146 if (wireType == ProtoWireType::kVarInt) { in operator ++()
237 template <ProtoWireType wireType, typename cppType>
249 static std::map<ProtoWireType, ParseDataAreaValueByType> DATA_AREA_TYPE_TO_PARSE_FUNC_MAP;
H A Dproto_reader_help.h67 enum class ProtoWireType : uint8_t { class
76 return (DataAreaId << DATA_AREA_ID) | static_cast<uint32_t>(ProtoWireType::kVarInt); in CreateTagVarInt()
H A Ddata_area.h41 ProtoWireType Type() const in Type()
43 auto res = static_cast<ProtoWireType>(type_); in Type()
/developtools/smartperf_host/trace_streamer/src/proto_reader/
H A Dproto_reader.cpp22 std::map<ProtoWireType, ProtoReaderBase::ParseDataAreaValueByType> ProtoReaderBase::DATA_AREA_TYPE_TO_PARSE_FUNC_MAP = {
23 {ProtoWireType::kVarInt, ProtoReaderBase::ParseVarIntValue},
24 {ProtoWireType::kLengthDelimited, ProtoReaderBase::ParseLengthDelimitedValue},
25 {ProtoWireType::kFixed32, ProtoReaderBase::ParseFixed32Value},
26 {ProtoWireType::kFixed64, ProtoReaderBase::ParseFixed64Value},
158 auto itor = DATA_AREA_TYPE_TO_PARSE_FUNC_MAP.find(static_cast<ProtoWireType>(dataAreaType)); in ParseOneDataArea()
/developtools/smartperf_host/trace_streamer/test/unittest/pbreader/
H A Dproto_reader_test.cpp585 auto packedRepeate = typedProtoCpuInfoTest.GetPackedRepeated<ProtoWireType::kVarInt, int32_t>( in HWTEST_F()
621 auto packedRepeate = typedProtoCpuInfoTest.GetPackedRepeated<ProtoWireType::kFixed64, double>( in HWTEST_F()
657 auto packedRepeate = typedProtoCpuInfoTest.GetPackedRepeated<ProtoWireType::kFixed32, float>( in HWTEST_F()
687 auto packedRepeate = typedProtoCpuInfoTest.GetPackedRepeated<ProtoWireType::kVarInt, int32_t>( in HWTEST_F()
714 auto packedRepeate = typedProtoCpuInfoTest.GetPackedRepeated<ProtoWireType::kFixed64, double>( in HWTEST_F()
741 auto packedRepeate = typedProtoCpuInfoTest.GetPackedRepeated<ProtoWireType::kFixed32, float>( in HWTEST_F()

Completed in 4 milliseconds