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)); }
public static void AddDataType(FlatBufferBuilder builder, KeyFrameUnion dataType) { builder.AddByte(0, (byte)(dataType), 0); }