public static Offset <Only4TestVO> CreateOnly4TestVO(FlatBufferBuilder builder, int Id = 0, StringOffset NameOffset = default(StringOffset)) { builder.StartObject(2); Only4TestVO.AddName(builder, NameOffset); Only4TestVO.AddId(builder, Id); return(Only4TestVO.EndOnly4TestVO(builder)); }
//LWN_Modify public Dictionary <int, object> GetTableData() { Dictionary <int, object> table = new Dictionary <int, object>(); for (int i = 0; i < DataLength; i++) { Only4TestVO value = (Only4TestVO)Data(i); int Id = System.Convert.ToInt32(value.Id); table.Add(Id, value); } return(table); }
public static Only4TestVO GetRootAsOnly4TestVO(ByteBuffer _bb, Only4TestVO obj) { return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }