コード例 #1
0
 public static Offset <NymaTypes.NInputInfo> CreateNInputInfo(FlatBufferBuilder builder,
                                                              StringOffset SettingNameOffset = default(StringOffset),
                                                              StringOffset NameOffset        = default(StringOffset),
                                                              short ConfigOrder         = 0,
                                                              ushort BitOffset          = 0,
                                                              NymaTypes.InputType Type  = NymaTypes.InputType.Padding,
                                                              NymaTypes.AxisFlags Flags = 0,
                                                              byte BitSize = 0,
                                                              NymaTypes.NInputExtra Extra_type = NymaTypes.NInputExtra.NONE,
                                                              int ExtraOffset = 0)
 {
     builder.StartTable(9);
     NInputInfo.AddExtra(builder, ExtraOffset);
     NInputInfo.AddName(builder, NameOffset);
     NInputInfo.AddSettingName(builder, SettingNameOffset);
     NInputInfo.AddBitOffset(builder, BitOffset);
     NInputInfo.AddConfigOrder(builder, ConfigOrder);
     NInputInfo.AddExtraType(builder, Extra_type);
     NInputInfo.AddBitSize(builder, BitSize);
     NInputInfo.AddFlags(builder, Flags);
     NInputInfo.AddType(builder, Type);
     return(NInputInfo.EndNInputInfo(builder));
 }
コード例 #2
0
 public static NInputInfo GetRootAsNInputInfo(ByteBuffer _bb, NInputInfo obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }