Esempio n. 1
0
 public static Offset <KeyFrameData> CreateKeyFrameData(FlatBufferBuilder builder,
                                                        KeyFrameUnion data_type = (KeyFrameUnion)0,
                                                        int data = 0)
 {
     builder.StartObject(2);
     KeyFrameData.AddData(builder, data);
     KeyFrameData.AddDataType(builder, data_type);
     return(KeyFrameData.EndKeyFrameData(builder));
 }
Esempio n. 2
0
 public static void AddDataType(FlatBufferBuilder builder, KeyFrameUnion dataType)
 {
     builder.AddByte(0, (byte)(dataType), 0);
 }