public static Offset <Config.TestGlobalTemplate> CreateTestGlobalTemplate(FlatBufferBuilder builder, int test_int = 0, VectorOffset test_string_arraysOffset = default(VectorOffset), double test_string1 = 0.0, StringOffset test_stringOffset = default(StringOffset), float test_float = 0.0f, double test_double = 0.0, bool test_bool = false, VectorOffset test_int_arraysOffset = default(VectorOffset), VectorOffset test_float_arraysOffset = default(VectorOffset), VectorOffset test_double_arraysOffset = default(VectorOffset), VectorOffset test_bool_arraysOffset = default(VectorOffset), Offset <Config.TestObj_> test_objOffset = default(Offset <Config.TestObj_>), Offset <Config.TestObj1_> test_obj1Offset = default(Offset <Config.TestObj1_>), VectorOffset test_obj_arraysOffset = default(VectorOffset), VectorOffset test_obj_array1sOffset = default(VectorOffset), Offset <Position3d> test_define_from_globalOffset = default(Offset <Position3d>), VectorOffset test_define_from_global2sOffset = default(VectorOffset), Offset <PositionArray3d> test_custom_objOffset = default(Offset <PositionArray3d>), VectorOffset test_custom_obj_arraysOffset = default(VectorOffset), int test1_int = 0, int test_int1 = 0) { builder.StartTable(21); TestGlobalTemplate.AddTestDouble(builder, test_double); TestGlobalTemplate.AddTestString1(builder, test_string1); TestGlobalTemplate.AddTestInt1(builder, test_int1); TestGlobalTemplate.AddTest1Int(builder, test1_int); TestGlobalTemplate.AddTestCustomObjArrays(builder, test_custom_obj_arraysOffset); TestGlobalTemplate.AddTestCustomObj(builder, test_custom_objOffset); TestGlobalTemplate.AddTestDefineFromGlobal2s(builder, test_define_from_global2sOffset); TestGlobalTemplate.AddTestDefineFromGlobal(builder, test_define_from_globalOffset); TestGlobalTemplate.AddTestObjArray1s(builder, test_obj_array1sOffset); TestGlobalTemplate.AddTestObjArrays(builder, test_obj_arraysOffset); TestGlobalTemplate.AddTestObj1(builder, test_obj1Offset); TestGlobalTemplate.AddTestObj(builder, test_objOffset); TestGlobalTemplate.AddTestBoolArrays(builder, test_bool_arraysOffset); TestGlobalTemplate.AddTestDoubleArrays(builder, test_double_arraysOffset); TestGlobalTemplate.AddTestFloatArrays(builder, test_float_arraysOffset); TestGlobalTemplate.AddTestIntArrays(builder, test_int_arraysOffset); TestGlobalTemplate.AddTestFloat(builder, test_float); TestGlobalTemplate.AddTestString(builder, test_stringOffset); TestGlobalTemplate.AddTestStringArrays(builder, test_string_arraysOffset); TestGlobalTemplate.AddTestInt(builder, test_int); TestGlobalTemplate.AddTestBool(builder, test_bool); return(TestGlobalTemplate.EndTestGlobalTemplate(builder)); }
public static TestGlobalTemplate GetRootAsTestGlobalTemplate(ByteBuffer _bb, TestGlobalTemplate obj) { return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }