Home
last modified time | relevance | path

Searched refs:maybe_i8 (Results 1 – 12 of 12) sorted by relevance

/external/flatbuffers/tests/cpp17/
Dtest_cpp17.cpp219 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/
Dscalar_stuff_generated.rs113 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/
Doptional_scalars_generated.h63 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()
Doptional_scalars_defaults.json3 maybe_i8: null,
Doptional_scalars_generated.lobster16 def maybe_i8() -> int, bool:
97 def add_maybe_i8(maybe_i8:int):
98 b_.PrependInt8Slot(1, maybe_i8)
Doptional_scalars.fbs13 maybe_i8: int8 = null;
Dlobstertest.lobster139 var maybe_val_i8, maybe_present_i8 = root.maybe_i8()
157 maybe_val_i8, maybe_present_i8 = root.maybe_i8()
Dtest.cpp4204 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/
Doptional_scalars_generated.h60 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()
Doptional_scalars2_generated.h53 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/
Doptional_scalars_test.rs54 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/
DScalarStuff.cs62 sbyte? maybe_i8 = null, in CreateScalarStuff()
132 ScalarStuff.AddMaybeI8(builder, maybe_i8); in CreateScalarStuff()