示例#1
0
文件: Lexema.cs 项目: Veivan/MorphApp
 public static Offset <Lexema> CreateLexema(FlatBufferBuilder builder,
                                            int order = 0,
                                            StringOffset EntryNameOffset = default(StringOffset),
                                            int id_entry                = 0,
                                            int id_partofspeech         = 0,
                                            VectorOffset grammemsOffset = default(VectorOffset),
                                            long LexemaID               = 0,
                                            StringOffset RealWordOffset = default(StringOffset),
                                            int rcind = 0)
 {
     builder.StartObject(8);
     Lexema.AddLexemaID(builder, LexemaID);
     Lexema.AddRcind(builder, rcind);
     Lexema.AddRealWord(builder, RealWordOffset);
     Lexema.AddGrammems(builder, grammemsOffset);
     Lexema.AddIdPartofspeech(builder, id_partofspeech);
     Lexema.AddIdEntry(builder, id_entry);
     Lexema.AddEntryName(builder, EntryNameOffset);
     Lexema.AddOrder(builder, order);
     return(Lexema.EndLexema(builder));
 }
示例#2
0
文件: Lexema.cs 项目: Veivan/MorphApp
 public static Lexema GetRootAsLexema(ByteBuffer _bb, Lexema obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }