Searched refs:AnyUnion (Results 1 – 4 of 4) sorted by relevance
/third_party/flatbuffers/tests/MyGame/Example/ |
D | Any.cs | 17 public class AnyUnion { class 21 public AnyUnion() { in AnyUnion() method in MyGame.Example.AnyUnion 31 public static int Pack(FlatBuffers.FlatBufferBuilder builder, AnyUnion _o) { in Pack() 43 …return objectType == typeof(AnyUnion) || objectType == typeof(System.Collections.Generic.List<AnyU… in CanConvert() 46 var _olist = value as System.Collections.Generic.List<AnyUnion>; in WriteJson() 52 this.WriteJson(writer, value as AnyUnion, serializer); in WriteJson() 55 …public void WriteJson(Newtonsoft.Json.JsonWriter writer, AnyUnion _o, Newtonsoft.Json.JsonSerializ… in WriteJson() 60 var _olist = existingValue as System.Collections.Generic.List<AnyUnion>; in ReadJson() 69 return this.ReadJson(reader, existingValue as AnyUnion, serializer); in ReadJson() 72 …public AnyUnion ReadJson(Newtonsoft.Json.JsonReader reader, AnyUnion _o, Newtonsoft.Json.JsonSeria… in ReadJson()
|
D | Monster.cs | 470 _o.Test = new MyGame.Example.AnyUnion(); in UnPackTo() 579 var _test = _o.Test == null ? 0 : MyGame.Example.AnyUnion.Pack(builder, _o.Test); in Pack() 766 this.Test = new MyGame.Example.AnyUnion(); 772 public MyGame.Example.AnyUnion Test { get; set; }
|
/third_party/flatbuffers/tests/ |
D | monster_test_generated.h | 245 struct AnyUnion { 249 AnyUnion() : type(Any_NONE), value(nullptr) {} 250 AnyUnion(AnyUnion&& u) FLATBUFFERS_NOEXCEPT : 253 AnyUnion(const AnyUnion &); 254 AnyUnion &operator=(const AnyUnion &u) 255 { AnyUnion t(u); std::swap(type, t.type); std::swap(value, t.value); return *this; } 256 AnyUnion &operator=(AnyUnion &&u) FLATBUFFERS_NOEXCEPT 258 ~AnyUnion() { Reset(); } 304 inline bool operator==(const AnyUnion &lhs, const AnyUnion &rhs) { 328 inline bool operator!=(const AnyUnion &lhs, const AnyUnion &rhs) { [all …]
|
/third_party/flatbuffers/tests/cpp17/generated_cpp17/ |
D | monster_test_generated.h | 215 struct AnyUnion { 219 AnyUnion() : type(Any::NONE), value(nullptr) {} 220 AnyUnion(AnyUnion&& u) FLATBUFFERS_NOEXCEPT : 223 AnyUnion(const AnyUnion &); 224 AnyUnion &operator=(const AnyUnion &u) 225 { AnyUnion t(u); std::swap(type, t.type); std::swap(value, t.value); return *this; } 226 AnyUnion &operator=(AnyUnion &&u) FLATBUFFERS_NOEXCEPT 228 ~AnyUnion() { Reset(); } 1172 MyGame::Example::AnyUnion test{}; 2686 …{ auto _e = test(); if (_e) _o->test.value = MyGame::Example::AnyUnion::UnPack(_e, test_type(), _r… [all …]
|