public static Offset <Netchan> CreateNetchan(FlatBufferBuilder builder,
                                              int protocol = 0,
                                              int sequence = 0,
                                              int ack      = 0,
                                              VectorOffset playersOffset = default(VectorOffset))
 {
     builder.StartObject(4);
     Netchan.AddPlayers(builder, playersOffset);
     Netchan.AddAck(builder, ack);
     Netchan.AddSequence(builder, sequence);
     Netchan.AddProtocol(builder, protocol);
     return(Netchan.EndNetchan(builder));
 }
 public static Netchan GetRootAsNetchan(ByteBuffer _bb, Netchan obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }