public byte[] MakeBody(fb.Command com, fb.Status st, string data1, string data2) { FlatBufferBuilder builder = new FlatBufferBuilder(1); StringOffset s1 = builder.CreateString(data1); StringOffset s2 = builder.CreateString(data2); Body.StartBody(builder); Body.AddCmd(builder, com); Body.AddStatus(builder, st); Body.AddData1(builder, s1); Body.AddData2(builder, s2); builder.Finish(Body.EndBody(builder).Value); return(builder.SizedByteArray()); }