Пример #1
0
 public static Offset <UIOp> CreateUIOp(FlatBufferBuilder builder,
                                        StringOffset nameOffset         = default(StringOffset),
                                        StringOffset opNameOffset       = default(StringOffset),
                                        VectorOffset inputsOffset       = default(VectorOffset),
                                        VectorOffset outputsOffset      = default(VectorOffset),
                                        VectorOffset controlDepsOffset  = default(VectorOffset),
                                        StringOffset uiLabelExtraOffset = default(StringOffset))
 {
     builder.StartObject(6);
     UIOp.AddUiLabelExtra(builder, uiLabelExtraOffset);
     UIOp.AddControlDeps(builder, controlDepsOffset);
     UIOp.AddOutputs(builder, outputsOffset);
     UIOp.AddInputs(builder, inputsOffset);
     UIOp.AddOpName(builder, opNameOffset);
     UIOp.AddName(builder, nameOffset);
     return(UIOp.EndUIOp(builder));
 }
Пример #2
0
 public static UIOp GetRootAsUIOp(ByteBuffer _bb, UIOp obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }