/external/flatbuffers/tests/cpp17/ |
D | test_cpp17.cpp | 219 TEST_ASSERT(opts->maybe_i8().has_value()); in OptionalScalarsTest() 220 TEST_EQ(opts->maybe_i8().value(), 2); in OptionalScalarsTest() 222 TEST_ASSERT(opts->maybe_i8().has_value()); in OptionalScalarsTest() 223 TEST_EQ(opts->maybe_i8().value(), 3); in OptionalScalarsTest() 230 TEST_ASSERT(obj.maybe_i8.has_value() && obj.maybe_i8.value() == 3); in OptionalScalarsTest() 231 TEST_ASSERT(obj.maybe_i8 && *obj.maybe_i8 == 3); in OptionalScalarsTest() 238 TEST_ASSERT(opts->maybe_i8().has_value()); in OptionalScalarsTest() 239 TEST_EQ(opts->maybe_i8().value(), 3); in OptionalScalarsTest()
|
/external/flatbuffers/tests/optional_scalars/optional_scalars/ |
D | scalar_stuff_generated.rs | 113 if let Some(x) = args.maybe_i8 { builder.add_maybe_i8(x); } in create() 120 let maybe_i8 = self.maybe_i8(); in unpack() localVariable 157 maybe_i8, in unpack() 200 pub fn maybe_i8(&self) -> Option<i8> { in maybe_i8() method 390 pub maybe_i8: Option<i8>, field 431 maybe_i8: None, in default() 480 pub fn add_maybe_i8(&mut self, maybe_i8: i8) { in add_maybe_i8() 481 self.fbb_.push_slot_always::<i8>(ScalarStuff::VT_MAYBE_I8, maybe_i8); in add_maybe_i8() 638 ds.field("maybe_i8", &self.maybe_i8()); in fmt() 680 pub maybe_i8: Option<i8>, field [all …]
|
/external/flatbuffers/tests/ |
D | optional_scalars_generated.h | 63 flatbuffers::Optional<int8_t> maybe_i8 = flatbuffers::nullopt; member 150 flatbuffers::Optional<int8_t> maybe_i8() const { in maybe_i8() function 412 void add_maybe_i8(int8_t maybe_i8) { in add_maybe_i8() 413 fbb_.AddElement<int8_t>(ScalarStuff::VT_MAYBE_I8, maybe_i8); in add_maybe_i8() 531 flatbuffers::Optional<int8_t> maybe_i8 = flatbuffers::nullopt, 601 if(maybe_i8) { builder_.add_maybe_i8(*maybe_i8); } 612 (lhs.maybe_i8 == rhs.maybe_i8) && 664 { auto _e = maybe_i8(); _o->maybe_i8 = _e; } in UnPackTo() 710 auto _maybe_i8 = _o->maybe_i8; in CreateScalarStuff()
|
D | optional_scalars_defaults.json | 3 maybe_i8: null,
|
D | optional_scalars_generated.lobster | 16 def maybe_i8() -> int, bool: 97 def add_maybe_i8(maybe_i8:int): 98 b_.PrependInt8Slot(1, maybe_i8)
|
D | optional_scalars.fbs | 13 maybe_i8: int8 = null;
|
D | lobstertest.lobster | 139 var maybe_val_i8, maybe_present_i8 = root.maybe_i8() 157 maybe_val_i8, maybe_present_i8 = root.maybe_i8()
|
D | test.cpp | 4204 TEST_ASSERT(opts->maybe_i8().has_value()); in OptionalScalarsTest() 4205 TEST_EQ(opts->maybe_i8().value(), 2); in OptionalScalarsTest() 4207 TEST_ASSERT(opts->maybe_i8().has_value()); in OptionalScalarsTest() 4208 TEST_EQ(opts->maybe_i8().value(), 3); in OptionalScalarsTest() 4217 TEST_ASSERT(obj.maybe_i8.has_value() && obj.maybe_i8.value() == 3); in OptionalScalarsTest() 4218 TEST_ASSERT(obj.maybe_i8 && *obj.maybe_i8 == 3); in OptionalScalarsTest() 4225 TEST_ASSERT(opts->maybe_i8().has_value()); in OptionalScalarsTest() 4226 TEST_EQ(opts->maybe_i8().value(), 3); in OptionalScalarsTest()
|
/external/flatbuffers/tests/cpp17/generated_cpp17/ |
D | optional_scalars_generated.h | 60 flatbuffers::Optional<int8_t> maybe_i8 = flatbuffers::nullopt; member 148 flatbuffers::Optional<int8_t> maybe_i8() const { in maybe_i8() function 361 else if constexpr (Index == 1) return maybe_i8(); in get_field() 450 void add_maybe_i8(int8_t maybe_i8) { in add_maybe_i8() 451 fbb_.AddElement<int8_t>(ScalarStuff::VT_MAYBE_I8, maybe_i8); in add_maybe_i8() 569 flatbuffers::Optional<int8_t> maybe_i8 = flatbuffers::nullopt, 639 if(maybe_i8) { builder_.add_maybe_i8(*maybe_i8); } 704 { auto _e = maybe_i8(); _o->maybe_i8 = _e; } in UnPackTo() 750 auto _maybe_i8 = _o->maybe_i8; in CreateScalarStuff()
|
D | optional_scalars2_generated.h | 53 flatbuffers::Optional<int8_t> maybe_i8 = flatbuffers::nullopt; member 141 flatbuffers::Optional<int8_t> maybe_i8() const { in maybe_i8() function 403 void add_maybe_i8(int8_t maybe_i8) { in add_maybe_i8() 404 fbb_.AddElement<int8_t>(ScalarStuff::VT_MAYBE_I8, maybe_i8); in add_maybe_i8() 522 flatbuffers::Optional<int8_t> maybe_i8 = flatbuffers::nullopt, 592 if(maybe_i8) { builder_.add_maybe_i8(*maybe_i8); } 614 { auto _e = maybe_i8(); _o->maybe_i8 = _e; } in UnPackTo() 660 auto _maybe_i8 = _o->maybe_i8; in CreateScalarStuff()
|
/external/flatbuffers/tests/rust_usage_test/tests/ |
D | optional_scalars_test.rs | 54 make_test!(optional_i8, just_i8, default_i8, maybe_i8, 5, 0, 42); 105 maybe_i8: None, in object_api_defaults()
|
/external/flatbuffers/tests/optional_scalars/ |
D | ScalarStuff.cs | 62 sbyte? maybe_i8 = null, in CreateScalarStuff() 132 ScalarStuff.AddMaybeI8(builder, maybe_i8); in CreateScalarStuff()
|