Home
last modified time | relevance | path

Searched refs:arena (Results 1 – 25 of 69) sorted by relevance

123

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/
Darena_unittest.cc163 Arena arena; in TEST() local
164 EXPECT_TRUE(Arena::Create<int32>(&arena) != NULL); in TEST()
165 EXPECT_TRUE(Arena::Create<int64>(&arena) != NULL); in TEST()
166 EXPECT_TRUE(Arena::Create<float>(&arena) != NULL); in TEST()
167 EXPECT_TRUE(Arena::Create<double>(&arena) != NULL); in TEST()
168 EXPECT_TRUE(Arena::Create<string>(&arena) != NULL); in TEST()
169 arena.Own(new int32); in TEST()
170 arena.Own(new int64); in TEST()
171 arena.Own(new float); in TEST()
172 arena.Own(new double); in TEST()
[all …]
Darena.h128 void* (*on_arena_init)(Arena* arena);
129 void (*on_arena_reset)(Arena* arena, void* cookie, uint64 space_used);
130 void (*on_arena_destruction)(Arena* arena, void* cookie, uint64 space_used);
250 static T* CreateMessage(::google::protobuf::Arena* arena) { in CreateMessage() argument
251 if (arena == NULL) { in CreateMessage()
254 return arena->CreateMessageInternal<T>(static_cast<T*>(0)); in CreateMessage()
262 static T* CreateMessage(::google::protobuf::Arena* arena, const Arg& arg) { in CreateMessage() argument
263 if (arena == NULL) { in CreateMessage()
266 return arena->CreateMessageInternal<T>(static_cast<T*>(0), in CreateMessage()
275 static T* CreateMessage(::google::protobuf::Arena* arena, in CreateMessage() argument
[all …]
Darenastring.h58 const ::std::string& value, ::google::protobuf::Arena* arena) { in Set()
60 CreateInstance(arena, &value); in Set()
72 ::google::protobuf::Arena* arena) { in Mutable()
74 CreateInstance(arena, default_value); in Mutable()
84 ::google::protobuf::Arena* arena) { in Release()
89 if (arena != NULL) { in Release()
118 ::std::string* value, ::google::protobuf::Arena* arena) { in SetAllocated()
119 if (arena == NULL && ptr_ != default_value) { in SetAllocated()
120 Destroy(default_value, arena); in SetAllocated()
124 if (arena != NULL) { in SetAllocated()
[all …]
Dmap_type_handler.h84 static inline Type* CreateMessage(Arena* arena);
89 static inline Type* CreateMessage(Arena* arena) {
90 return Arena::CreateMessage<Type>(arena);
96 static inline Type* CreateMessage(Arena* arena) {
97 return Arena::Create<Type>(arena);
177 static inline void Merge(const Type& from, Type** to, Arena* arena);
178 static inline void Clear(Type** value, Arena* arena);
179 static inline void ClearMaybeByDefaultEnum(Type** value, Arena* arena,
181 static inline void Initialize(Type** x, Arena* arena);
185 Arena* arena);
[all …]
Dproto3_arena_unittest.cc126 Arena arena; in TEST() local
127 TestAllTypes* arena_message = Arena::CreateMessage<TestAllTypes>(&arena); in TEST()
136 Arena arena; in TEST() local
137 TestAllTypes* arena_message = Arena::CreateMessage<TestAllTypes>(&arena); in TEST()
166 Arena arena; in TEST() local
167 TestAllTypes *arena_message = Arena::CreateMessage<TestAllTypes>(&arena); in TEST()
175 Arena arena; in TEST() local
176 TestAllTypes* arena_message = Arena::CreateMessage<TestAllTypes>(&arena); in TEST()
185 Arena arena; in TEST() local
186 TestAllTypes* arena_message = Arena::CreateMessage<TestAllTypes>(&arena); in TEST()
[all …]
Darenastring_unittest.cc83 google::protobuf::Arena arena; in TEST() local
88 field.Set(&default_value, WrapString("Test short"), &arena); in TEST()
90 field.Set(&default_value, WrapString("Test long long long long value"), &arena); in TEST()
93 field.Set(&default_value, string(""), &arena); in TEST()
94 field.Destroy(&default_value, &arena); in TEST()
98 ::std::string* mut = field2.Mutable(&default_value, &arena); in TEST()
99 EXPECT_EQ(mut, field2.Mutable(&default_value, &arena)); in TEST()
106 field2.Destroy(&default_value, &arena); in TEST()
Dlite_arena_unittest.cc46 google::protobuf::Arena arena(options); in TEST() local
56 google::protobuf::Arena::CreateMessage<protobuf_unittest::TestArenaMapLite>(&arena); in TEST()
61 google::protobuf::Arena::CreateMessage<protobuf_unittest::TestArenaMapLite>(&arena); in TEST()
68 google::protobuf::Arena arena; in TEST() local
71 &arena); in TEST()
Dwrappers.pb.h78 DoubleValue* New(::google::protobuf::Arena* arena) const;
103 explicit DoubleValue(::google::protobuf::Arena* arena);
106 inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
109 return _internal_metadata_.arena(); in GetArenaNoVirtual()
173 FloatValue* New(::google::protobuf::Arena* arena) const;
198 explicit FloatValue(::google::protobuf::Arena* arena);
201 inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
204 return _internal_metadata_.arena(); in GetArenaNoVirtual()
268 Int64Value* New(::google::protobuf::Arena* arena) const;
293 explicit Int64Value(::google::protobuf::Arena* arena);
[all …]
Dmetadata.h62 explicit InternalMetadataWithArena(Arena* arena) in InternalMetadataWithArena() argument
63 : ptr_ (arena) {} in InternalMetadataWithArena()
66 if (have_unknown_fields() && arena() == NULL) { in ~InternalMetadataWithArena()
88 GOOGLE_ATTRIBUTE_ALWAYS_INLINE Arena* arena() const { in arena() function
146 Arena* my_arena = arena(); in mutable_unknown_fields_slow()
Drepeated_field.cc54 Arena* arena = GetArenaNoVirtual(); in InternalExtend() local
61 if (arena == NULL) { in InternalExtend()
66 ::google::protobuf::Arena::CreateArray<char>(arena, in InternalExtend()
77 if (arena == NULL) { in InternalExtend()
Dproto3_arena_lite_unittest.cc126 Arena arena; in TEST() local
127 TestAllTypes* arena_message = Arena::CreateMessage<TestAllTypes>(&arena); in TEST()
145 Arena arena; in TEST() local
146 TestAllTypes *arena_message = Arena::CreateMessage<TestAllTypes>(&arena); in TEST()
154 Arena arena; in TEST() local
155 TestAllTypes* arena_message = Arena::CreateMessage<TestAllTypes>(&arena); in TEST()
Dmap_entry_lite.h248 MessageLite* New(Arena* arena) const {
249 MapEntryLite* entry = Arena::CreateMessage<MapEntryLite>(arena);
298 Arena* arena) {
301 arena, key, value);
306 static MapEntryLite* Wrap(const Key& key, const Value& value, Arena* arena) {
310 arena, key, value);
443 MapEntryWrapper(Arena* arena, const K& key, const V& value)
444 : MapEntryLite<K, V, k_wire_type, v_wire_type, default_enum>(arena),
477 MapEnumEntryWrapper(Arena* arena, const K& key, const V& value)
478 : MapEntryLite<K, V, k_wire_type, v_wire_type, default_enum>(arena),
[all …]
Dwrappers.pb.cc316 DoubleValue::DoubleValue(::google::protobuf::Arena* arena) in DoubleValue() argument
318 _internal_metadata_(arena) { in DoubleValue()
320 RegisterArenaDtor(arena); in DoubleValue()
360 void DoubleValue::RegisterArenaDtor(::google::protobuf::Arena* arena) { in RegisterArenaDtor() argument
379 DoubleValue* DoubleValue::New(::google::protobuf::Arena* arena) const { in New()
380 return ::google::protobuf::Arena::CreateMessage<DoubleValue>(arena); in New()
578 FloatValue::FloatValue(::google::protobuf::Arena* arena) in FloatValue() argument
580 _internal_metadata_(arena) { in FloatValue()
582 RegisterArenaDtor(arena); in FloatValue()
622 void FloatValue::RegisterArenaDtor(::google::protobuf::Arena* arena) { in RegisterArenaDtor() argument
[all …]
Dmap_field.h68 explicit MapFieldBase(Arena* arena) in MapFieldBase() argument
69 : arena_(arena), in MapFieldBase()
76 arena->OwnDestructor(&mutex_); in MapFieldBase()
188 explicit TypeDefinedMapFieldBase(Arena* arena) : MapFieldBase(arena) {} in TypeDefinedMapFieldBase() argument
245 explicit MapField(Arena* arena);
250 MapField(Arena* arena, const Message* default_entry);
301 DynamicMapField(const Message* default_entry, Arena* arena);
Dempty.pb.cc115 Empty::Empty(::google::protobuf::Arena* arena) in Empty() argument
117 _internal_metadata_(arena) { in Empty()
119 RegisterArenaDtor(arena); in Empty()
158 void Empty::RegisterArenaDtor(::google::protobuf::Arena* arena) { in RegisterArenaDtor() argument
177 Empty* Empty::New(::google::protobuf::Arena* arena) const { in New()
178 return ::google::protobuf::Arena::CreateMessage<Empty>(arena); in New()
Darena_nc.cc40 google::protobuf::Arena arena; in ArenaPrivateConstructor() local
41 protobuf_unittest::TestAllTypes message(&arena); in ArenaPrivateConstructor()
Drepeated_field.h110 explicit RepeatedField(Arena* arena);
246 Arena* arena; member
273 return (rep_ == NULL) ? NULL : rep_->arena; in GetArenaNoVirtual()
286 if (rep->arena == NULL) { in InternalDeallocate()
393 explicit RepeatedPtrFieldBase(::google::protobuf::Arena* arena);
563 static inline GenericType* New(Arena* arena) {
565 arena, static_cast<GenericType*>(0));
571 const GenericType* prototype, ::google::protobuf::Arena* arena = NULL);
572 static inline void Delete(GenericType* value, Arena* arena) {
573 if (arena == NULL) {
[all …]
Dempty.pb.h70 Empty* New(::google::protobuf::Arena* arena) const;
95 explicit Empty(::google::protobuf::Arena* arena);
98 inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
101 return _internal_metadata_.arena(); in GetArenaNoVirtual()
Dtimestamp.pb.h70 Timestamp* New(::google::protobuf::Arena* arena) const;
95 explicit Timestamp(::google::protobuf::Arena* arena);
98 inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
101 return _internal_metadata_.arena(); in GetArenaNoVirtual()
Dmap_entry.h191 Message* New(Arena* arena) const { in New() argument
192 MapEntry* entry = Arena::CreateMessage<MapEntry>(arena); in New()
267 explicit MapEntry(Arena* arena) in MapEntry() argument
268 : _internal_metadata_(arena), in MapEntry()
270 entry_lite_(arena) {} in MapEntry()
Dtimestamp.pb.cc120 Timestamp::Timestamp(::google::protobuf::Arena* arena) in Timestamp() argument
122 _internal_metadata_(arena) { in Timestamp()
124 RegisterArenaDtor(arena); in Timestamp()
165 void Timestamp::RegisterArenaDtor(::google::protobuf::Arena* arena) { in RegisterArenaDtor() argument
184 Timestamp* Timestamp::New(::google::protobuf::Arena* arena) const { in New()
185 return ::google::protobuf::Arena::CreateMessage<Timestamp>(arena); in New()
Dmessage_lite.cc153 MessageLite* MessageLite::New(::google::protobuf::Arena* arena) const { in New()
155 if (arena != NULL) { in New()
156 arena->Own(message); in New()
355 const MessageLite* prototype, google::protobuf::Arena* arena) { in NewFromPrototype() argument
356 return prototype->New(arena); in NewFromPrototype()
Dmap_field_test.cc63 explicit MapFieldBaseStub(Arena* arena) : MapFieldBase(arena) {} in MapFieldBaseStub() argument
173 Arena arena(options); in TEST_F() local
181 Arena::CreateMessage<MapFieldType>(&arena, default_entry_); in TEST_F()
196 Arena::CreateMessage<MapFieldBaseStub>(&arena); in TEST_F()
Dmap_field_lite.h55 explicit MapFieldLite(Arena* arena);
110 default_enum_value>::MapFieldLite(Arena* arena) in MapFieldLite() argument
111 : arena_(arena) { in MapFieldLite()
112 map_ = Arena::CreateMessage<Map<Key, T> >(arena); in MapFieldLite()
Dmap_field_inl.h177 Arena* arena) in MapField() argument
178 : TypeDefinedMapFieldBase<Key, T>(arena), in MapField()
180 arena), in MapField()
196 Arena* arena, const Message* default_entry) in MapField() argument
197 : TypeDefinedMapFieldBase<Key, T>(arena), in MapField()
199 arena), in MapField()

123