Exemplo n.º 1
0
        public static Offset <ComplexType> BuildComplexType(FlatBufferBuilder fbb)
        {
            StringOffset stringOffset = fbb.CreateString("Some random string");

            ComplexType.StartIntVectorTypeVector(fbb, 5);
            var intVectorOffset = BuildVector(fbb);

            ComplexType.StartComplexType(fbb);
            ComplexType.AddStringType(fbb, stringOffset);
            ComplexType.AddIntVectorType(fbb, intVectorOffset);
            ComplexType.AddEnumType(fbb, Color.Green);
            ComplexType.AddStructType(fbb, Axis.CreateAxis(fbb, 1.1f, 2.1f, 3.1f));
            return(ComplexType.EndComplexType(fbb));
        }