public static Offset <MyGame.Example.TypeAliases> CreateTypeAliases(FlatBufferBuilder builder,
                                                                     sbyte i8                = 0,
                                                                     byte u8                 = 0,
                                                                     short i16               = 0,
                                                                     ushort u16              = 0,
                                                                     int i32                 = 0,
                                                                     uint u32                = 0,
                                                                     long i64                = 0,
                                                                     ulong u64               = 0,
                                                                     float f32               = 0.0f,
                                                                     double f64              = 0.0,
                                                                     VectorOffset v8Offset   = default(VectorOffset),
                                                                     VectorOffset vf64Offset = default(VectorOffset))
 {
     builder.StartTable(12);
     TypeAliases.AddF64(builder, f64);
     TypeAliases.AddU64(builder, u64);
     TypeAliases.AddI64(builder, i64);
     TypeAliases.AddVf64(builder, vf64Offset);
     TypeAliases.AddV8(builder, v8Offset);
     TypeAliases.AddF32(builder, f32);
     TypeAliases.AddU32(builder, u32);
     TypeAliases.AddI32(builder, i32);
     TypeAliases.AddU16(builder, u16);
     TypeAliases.AddI16(builder, i16);
     TypeAliases.AddU8(builder, u8);
     TypeAliases.AddI8(builder, i8);
     return(TypeAliases.EndTypeAliases(builder));
 }
 public static TypeAliases GetRootAsTypeAliases(ByteBuffer _bb, TypeAliases obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }
예제 #3
0
 public static TypeAliases GetRootAsTypeAliases(ByteBuffer _bb, TypeAliases obj)
 {
     FlatBufferConstants.FLATBUFFERS_1_11_1(); return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }