Home
last modified time | relevance | path

Searched refs:OptionalByte (Results 1 – 25 of 28) sorted by relevance

12

/external/flatbuffers/tests/optional_scalars/
Doptional-byte.js2 export var OptionalByte; variable
3 (function (OptionalByte) { argument
4 OptionalByte[OptionalByte["None"] = 0] = "None";
5 OptionalByte[OptionalByte["One"] = 1] = "One";
6 OptionalByte[OptionalByte["Two"] = 2] = "Two";
7 })(OptionalByte || (OptionalByte = {}));
DOptionalByte.go7 type OptionalByte int8 type
10 OptionalByteNone OptionalByte = 0
11 OptionalByteOne OptionalByte = 1
12 OptionalByteTwo OptionalByte = 2
15 var EnumNamesOptionalByte = map[OptionalByte]string{
21 var EnumValuesOptionalByte = map[string]OptionalByte{
27 func (v OptionalByte) String() string {
DScalarStuff.cs56OptionalByte JustEnum { get { int o = __p.__offset(70); return o != 0 ? (optional_scalars.Optional…
57OptionalByte? MaybeEnum { get { int o = __p.__offset(72); return o != 0 ? (optional_scalars.Option…
58OptionalByte DefaultEnum { get { int o = __p.__offset(74); return o != 0 ? (optional_scalars.Optio…
94 optional_scalars.OptionalByte just_enum = optional_scalars.OptionalByte.None, in CreateScalarStuff()
95 optional_scalars.OptionalByte? maybe_enum = null, in CreateScalarStuff()
96 optional_scalars.OptionalByte default_enum = optional_scalars.OptionalByte.One) { in CreateScalarStuff()
171 …public static void AddJustEnum(FlatBufferBuilder builder, optional_scalars.OptionalByte justEnum) … in AddJustEnum()
172 …public static void AddMaybeEnum(FlatBufferBuilder builder, optional_scalars.OptionalByte? maybeEnu… in AddMaybeEnum()
173 …public static void AddDefaultEnum(FlatBufferBuilder builder, optional_scalars.OptionalByte default… in AddDefaultEnum()
301 public optional_scalars.OptionalByte JustEnum { get; set; }
[all …]
Dscalar-stuff.ts5 import { OptionalByte } from '../optional_scalars/optional-byte';
195 justEnum():OptionalByte {
197 return offset ? this.bb!.readInt8(this.bb_pos + offset) : OptionalByte.None;
200 maybeEnum():OptionalByte|null {
205 defaultEnum():OptionalByte {
207 return offset ? this.bb!.readInt8(this.bb_pos + offset) : OptionalByte.One;
346 static addJustEnum(builder:flatbuffers.Builder, justEnum:OptionalByte) {
347 builder.addFieldInt8(33, justEnum, OptionalByte.None);
350 static addMaybeEnum(builder:flatbuffers.Builder, maybeEnum:OptionalByte) {
354 static addDefaultEnum(builder:flatbuffers.Builder, defaultEnum:OptionalByte) {
[all …]
DScalarStuff.go43 JustEnum OptionalByte `json:"just_enum"`
44 MaybeEnum *OptionalByte `json:"maybe_enum"`
45 DefaultEnum OptionalByte `json:"default_enum"`
594 func (rcv *ScalarStuff) JustEnum() OptionalByte {
597 return OptionalByte(rcv._tab.GetInt8(o + rcv._tab.Pos))
602 func (rcv *ScalarStuff) MutateJustEnum(n OptionalByte) bool {
606 func (rcv *ScalarStuff) MaybeEnum() *OptionalByte {
609 v := OptionalByte(rcv._tab.GetInt8(o + rcv._tab.Pos))
615 func (rcv *ScalarStuff) MutateMaybeEnum(n OptionalByte) bool {
619 func (rcv *ScalarStuff) DefaultEnum() OptionalByte {
[all …]
DOptionalByte.java6 public final class OptionalByte { class
7 private OptionalByte() { } in OptionalByte() method in OptionalByte
Dscalar-stuff.js3 import { OptionalByte } from '../optional_scalars/optional-byte';
158 return offset ? this.bb.readInt8(this.bb_pos + offset) : OptionalByte.None;
166 return offset ? this.bb.readInt8(this.bb_pos + offset) : OptionalByte.One;
271 builder.addFieldInt8(33, justEnum, OptionalByte.None);
277 builder.addFieldInt8(35, defaultEnum, OptionalByte.One);
Doptional-byte.ts3 export enum OptionalByte{ enum
DOptionalByte.py5 class OptionalByte(object): class
DOptionalByte.cs8 public enum OptionalByte : sbyte enum
DOptionalByte.kt6 class OptionalByte private constructor() { class
/external/flatbuffers/tests/optional_scalars/optional_scalars/
Doptional_byte_generated.rs18 pub const ENUM_VALUES_OPTIONAL_BYTE: [OptionalByte; 3] = [
19 OptionalByte::None,
20 OptionalByte::One,
21 OptionalByte::Two,
26 pub struct OptionalByte(pub i8); struct
28 impl OptionalByte { impl
50 impl core::fmt::Debug for OptionalByte { implementation
59 impl<'a> flatbuffers::Follow<'a> for OptionalByte { implementation
70 impl flatbuffers::Push for OptionalByte { implementation
71 type Output = OptionalByte;
[all …]
Dscalar_stuff_generated.rs328 pub fn just_enum(&self) -> OptionalByte { in just_enum() argument
329 self._tab.get::<OptionalByte>(ScalarStuff::VT_JUST_ENUM, Some(OptionalByte::None)).unwrap() in just_enum()
332 pub fn maybe_enum(&self) -> Option<OptionalByte> { in maybe_enum() argument
333 self._tab.get::<OptionalByte>(ScalarStuff::VT_MAYBE_ENUM, None) in maybe_enum()
336 pub fn default_enum(&self) -> OptionalByte { in default_enum() argument
337 self._tab.get::<OptionalByte>(ScalarStuff::VT_DEFAULT_ENUM, Some(OptionalByte::One)).unwrap() in default_enum()
381 .visit_field::<OptionalByte>("just_enum", Self::VT_JUST_ENUM, false)? in run_verifier()
382 .visit_field::<OptionalByte>("maybe_enum", Self::VT_MAYBE_ENUM, false)? in run_verifier()
383 .visit_field::<OptionalByte>("default_enum", Self::VT_DEFAULT_ENUM, false)? in run_verifier()
422 pub just_enum: OptionalByte,
[all …]
/external/flatbuffers/tests/cpp17/generated_cpp17/
Doptional_scalars_generated.h24 enum class OptionalByte : int8_t { enum
32 inline const OptionalByte (&EnumValuesOptionalByte())[3] { in EnumValuesOptionalByte()
33 static const OptionalByte values[] = { in EnumValuesOptionalByte()
34 OptionalByte::None, in EnumValuesOptionalByte()
35 OptionalByte::One, in EnumValuesOptionalByte()
36 OptionalByte::Two in EnumValuesOptionalByte()
51 inline const char *EnumNameOptionalByte(OptionalByte e) { in EnumNameOptionalByte()
52 if (flatbuffers::IsOutRange(e, OptionalByte::None, OptionalByte::Two)) return ""; in EnumNameOptionalByte()
92 optional_scalars::OptionalByte just_enum = optional_scalars::OptionalByte::None;
93 flatbuffers::Optional<optional_scalars::OptionalByte> maybe_enum = flatbuffers::nullopt;
[all …]
Doptional_scalars2_generated.h17 enum class OptionalByte : int8_t { enum
25 inline const OptionalByte (&EnumValuesOptionalByte())[3] { in EnumValuesOptionalByte()
26 static const OptionalByte values[] = { in EnumValuesOptionalByte()
27 OptionalByte::None, in EnumValuesOptionalByte()
28 OptionalByte::One, in EnumValuesOptionalByte()
29 OptionalByte::Two in EnumValuesOptionalByte()
44 inline const char *EnumNameOptionalByte(OptionalByte e) { in EnumNameOptionalByte()
45 if (flatbuffers::IsOutRange(e, OptionalByte::None, OptionalByte::Two)) return ""; in EnumNameOptionalByte()
85 optional_scalars::OptionalByte just_enum = optional_scalars::OptionalByte::None;
86 flatbuffers::Optional<optional_scalars::OptionalByte> maybe_enum = flatbuffers::nullopt;
[all …]
/external/flatbuffers/tests/optional-scalars/
Dscalar-stuff.ts5 import { OptionalByte } from '../optional-scalars/optional-byte';
195 justEnum():OptionalByte {
197 return offset ? this.bb!.readInt8(this.bb_pos + offset) : OptionalByte.None;
200 maybeEnum():OptionalByte|null {
205 defaultEnum():OptionalByte {
207 return offset ? this.bb!.readInt8(this.bb_pos + offset) : OptionalByte.One;
346 static addJustEnum(builder:flatbuffers.Builder, justEnum:OptionalByte) {
347 builder.addFieldInt8(33, justEnum, OptionalByte.None);
350 static addMaybeEnum(builder:flatbuffers.Builder, maybeEnum:OptionalByte) {
354 static addDefaultEnum(builder:flatbuffers.Builder, defaultEnum:OptionalByte) {
[all …]
Doptional-byte.ts3 export enum OptionalByte { enum
/external/flatbuffers/tests/
Doptional_scalars_generated.lobster6 enum OptionalByte:
80 def just_enum() -> OptionalByte:
81 return OptionalByte(buf_.flatbuffers_field_int8(pos_, 70, 0))
82 def maybe_enum() -> OptionalByte, bool:
83 …return OptionalByte(buf_.flatbuffers_field_int8(pos_, 72, 0)), buf_.flatbuffers_field_present(pos_…
84 def default_enum() -> OptionalByte:
85 return OptionalByte(buf_.flatbuffers_field_int8(pos_, 74, 1))
193 def add_just_enum(just_enum:OptionalByte):
196 def add_maybe_enum(maybe_enum:OptionalByte):
199 def add_default_enum(default_enum:OptionalByte):
Doptional_scalars.fbs3 enum OptionalByte: byte {
51 just_enum: OptionalByte;
52 maybe_enum: OptionalByte = null;
53 default_enum: OptionalByte = One;
Doptional_scalars_generated.h27 enum OptionalByte : int8_t { enum
35 inline const OptionalByte (&EnumValuesOptionalByte())[3] { in EnumValuesOptionalByte()
36 static const OptionalByte values[] = { in EnumValuesOptionalByte()
54 inline const char *EnumNameOptionalByte(OptionalByte e) { in EnumNameOptionalByte()
95 optional_scalars::OptionalByte just_enum = optional_scalars::OptionalByte_None;
96 flatbuffers::Optional<optional_scalars::OptionalByte> maybe_enum = flatbuffers::nullopt;
97 optional_scalars::OptionalByte default_enum = optional_scalars::OptionalByte_One;
342 optional_scalars::OptionalByte just_enum() const { in just_enum()
343 return static_cast<optional_scalars::OptionalByte>(GetField<int8_t>(VT_JUST_ENUM, 0)); in just_enum()
345 …bool mutate_just_enum(optional_scalars::OptionalByte _just_enum = static_cast<optional_scalars::Op…
[all …]
DKotlinTest.kt534 assert(scalarStuff.justEnum == OptionalByte.None) in TestScalarOptional()
536 assert(scalarStuff.defaultEnum == OptionalByte.One) in TestScalarOptional()
574 ScalarStuff.addJustEnum(fbb, OptionalByte.Two) in TestScalarOptional()
575 ScalarStuff.addMaybeEnum(fbb, OptionalByte.Two) in TestScalarOptional()
576 ScalarStuff.addDefaultEnum(fbb, OptionalByte.Two) in TestScalarOptional()
617 assert(scalarStuff.justEnum == OptionalByte.Two) in TestScalarOptional()
618 assert(scalarStuff.maybeEnum == OptionalByte.Two) in TestScalarOptional()
619 assert(scalarStuff.defaultEnum == OptionalByte.Two) in TestScalarOptional()
Doptional_scalars.ts1 export { OptionalByte } from './optional-scalars/optional-byte';
Doptional_scalars_generated.ts3 export { OptionalByte } from './optional-scalars/optional-byte';
/external/flatbuffers/tests/rust_usage_test/tests/
Doptional_scalars_test.rs94 OptionalByte::Two,
95 OptionalByte::None,
96 OptionalByte::One
143 just_enum: OptionalByte::None, in object_api_defaults()
145 default_enum: OptionalByte::One, in object_api_defaults()
/external/flatbuffers/tests/FlatBuffers.Test/
DFlatBuffersExampleTests.cs968 Assert.AreEqual(OptionalByte.None, scalarStuff.JustEnum); in TestScalarOptional_EmptyBuffer()
970 Assert.AreEqual(OptionalByte.One, scalarStuff.DefaultEnum); in TestScalarOptional_EmptyBuffer()
1016 ScalarStuff.AddJustEnum(fbb, OptionalByte.Two); in TestScalarOptional_Construction()
1017 ScalarStuff.AddMaybeEnum(fbb, OptionalByte.Two); in TestScalarOptional_Construction()
1018 ScalarStuff.AddDefaultEnum(fbb, OptionalByte.Two); in TestScalarOptional_Construction()
1064 Assert.AreEqual(OptionalByte.Two, scalarStuff.JustEnum); in TestScalarOptional_Construction()
1065 Assert.AreEqual(OptionalByte.Two, scalarStuff.MaybeEnum); in TestScalarOptional_Construction()
1066 Assert.AreEqual(OptionalByte.Two, scalarStuff.DefaultEnum); in TestScalarOptional_Construction()
1075 14.0,14.0,true,true,false,OptionalByte.Two,OptionalByte.Two, in TestScalarOptional_Construction_CreatorMethod()
1076 OptionalByte.Two); in TestScalarOptional_Construction_CreatorMethod()
[all …]

12