예제 #1
0
 public static Offset <UdpMessages.ServerClientMessages.ServerClientMessage> CreateServerClientMessage(FlatBufferBuilder builder,
                                                                                                       UdpMessages.ServerClientMessages.ServerClientMessageContent content_type = UdpMessages.ServerClientMessages.ServerClientMessageContent.NONE,
                                                                                                       int contentOffset = 0)
 {
     builder.StartTable(2);
     ServerClientMessage.AddContent(builder, contentOffset);
     ServerClientMessage.AddContentType(builder, content_type);
     return(ServerClientMessage.EndServerClientMessage(builder));
 }
예제 #2
0
 public static ServerClientMessage GetRootAsServerClientMessage(ByteBuffer _bb, ServerClientMessage obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }