Exemplo n.º 1
0
 public static Offset <FBComponent> CreateFBComponent(FlatBufferBuilder builder,
                                                      Offset <FBUID> idOffset     = default(Offset <FBUID>),
                                                      Offset <FBUID> entityOffset = default(Offset <FBUID>),
                                                      bool wasConstructed         = false)
 {
     builder.StartObject(3);
     FBComponent.AddEntity(builder, entityOffset);
     FBComponent.AddId(builder, idOffset);
     FBComponent.AddWasConstructed(builder, wasConstructed);
     return(FBComponent.EndFBComponent(builder));
 }
Exemplo n.º 2
0
 public static FBComponent GetRootAsFBComponent(ByteBuffer _bb, FBComponent obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }