From 9f25124875e009c4efabb7b042685dc43d17a342 Mon Sep 17 00:00:00 2001 From: Morozov-5F Date: Wed, 6 Jul 2022 15:17:27 +0000 Subject: [PATCH] Fix formatting. --- scripts/tests/chiptest/__init__.py | 15 +- .../certification/Test_TC_DLRK_2_7.yaml | 3 +- .../CHIP/zap-generated/MTRCallbackBridge.mm | 952 +++++++++--------- 3 files changed, 487 insertions(+), 483 deletions(-) diff --git a/scripts/tests/chiptest/__init__.py b/scripts/tests/chiptest/__init__.py index 806a6a462de8d7..eb911c82894204 100644 --- a/scripts/tests/chiptest/__init__.py +++ b/scripts/tests/chiptest/__init__.py @@ -13,11 +13,13 @@ # See the License for the specific language governing permissions and # limitations under the License. # - import subprocess -from . import linux, runner -from .test_definition import ApplicationPaths, TestDefinition, TestTarget +from . import linux +from . import runner +from .test_definition import ApplicationPaths +from .test_definition import TestDefinition +from .test_definition import TestTarget def target_for_name(name: str): @@ -46,9 +48,10 @@ def tests_with_command(chip_tool: str, is_manual: bool): target = target_for_name(name) - yield TestDefinition( - run_name=name, name=name, target=target, is_manual=is_manual - ) + yield TestDefinition(run_name=name, + name=name, + target=target, + is_manual=is_manual) def AllTests(chip_tool: str): diff --git a/src/app/tests/suites/certification/Test_TC_DLRK_2_7.yaml b/src/app/tests/suites/certification/Test_TC_DLRK_2_7.yaml index 94995734530425..d6c75a00d2fab3 100644 --- a/src/app/tests/suites/certification/Test_TC_DLRK_2_7.yaml +++ b/src/app/tests/suites/certification/Test_TC_DLRK_2_7.yaml @@ -181,8 +181,7 @@ tests: hasValue: false - label: - "send Get Year Day Schedule Command to DUT and verify FAILURE - response" + "send Get Year Day Schedule Command to DUT and verify FAILURE response" command: "GetYearDaySchedule" arguments: values: diff --git a/src/darwin/Framework/CHIP/zap-generated/MTRCallbackBridge.mm b/src/darwin/Framework/CHIP/zap-generated/MTRCallbackBridge.mm index 3f5f4d2c1fc5bf..c5b7d5a0c1a7a5 100644 --- a/src/darwin/Framework/CHIP/zap-generated/MTRCallbackBridge.mm +++ b/src/darwin/Framework/CHIP/zap-generated/MTRCallbackBridge.mm @@ -23,7 +23,9 @@ #include -void MTRDefaultSuccessCallbackBridge::OnSuccessFn(void * context) { DispatchSuccess(context, nil); }; +void MTRDefaultSuccessCallbackBridge::OnSuccessFn(void * context) { + DispatchSuccess(context, nil); +}; void MTRCommandSuccessCallbackBridge::OnSuccessFn(void * context, const chip::app::DataModel::NullObjectType &) { @@ -737,7 +739,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -776,7 +778,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -815,7 +817,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -854,7 +856,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -893,7 +895,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -932,7 +934,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -971,7 +973,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -1010,7 +1012,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -1049,7 +1051,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -1088,7 +1090,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -1127,7 +1129,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -1166,7 +1168,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -1205,7 +1207,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -1245,7 +1247,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -1285,7 +1287,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -1324,7 +1326,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -1363,7 +1365,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -1402,7 +1404,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -1441,7 +1443,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -1480,7 +1482,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -1519,7 +1521,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -1555,10 +1557,10 @@ } void MTRDescriptorDeviceListListAttributeCallbackBridge::OnSuccessFn(void * context, - const chip::app::DataModel::DecodableList & value) + const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -1599,7 +1601,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -1638,7 +1640,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -1677,7 +1679,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -1716,7 +1718,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -1755,7 +1757,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -1794,7 +1796,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -1830,10 +1832,10 @@ } void MTRBindingBindingListAttributeCallbackBridge::OnSuccessFn(void * context, - const chip::app::DataModel::DecodableList & value) + const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -1893,7 +1895,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -1932,7 +1934,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -1971,7 +1973,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -2007,11 +2009,11 @@ } void MTRAccessControlAclListAttributeCallbackBridge::OnSuccessFn(void * context, - const chip::app::DataModel::DecodableList & + const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -2023,7 +2025,7 @@ if (entry_0.subjects.IsNull()) { newElement_0.subjects = nil; } else { - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_3 = [NSMutableArray new]; auto iter_3 = entry_0.subjects.Value().begin(); while (iter_3.Next()) { @@ -2043,7 +2045,7 @@ if (entry_0.targets.IsNull()) { newElement_0.targets = nil; } else { - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_3 = [NSMutableArray new]; auto iter_3 = entry_0.targets.Value().begin(); while (iter_3.Next()) { @@ -2105,10 +2107,10 @@ } void MTRAccessControlExtensionListAttributeCallbackBridge::OnSuccessFn(void * context, - const chip::app::DataModel::DecodableList & value) + const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -2149,7 +2151,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -2188,7 +2190,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -2227,7 +2229,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -2263,10 +2265,10 @@ } void MTRBridgedActionsActionListListAttributeCallbackBridge::OnSuccessFn(void * context, - const chip::app::DataModel::DecodableList & value) + const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -2275,8 +2277,8 @@ newElement_0 = [MTRBridgedActionsClusterActionStruct new]; newElement_0.actionID = [NSNumber numberWithUnsignedShort:entry_0.actionID]; newElement_0.name = [[NSString alloc] initWithBytes:entry_0.name.data() - length:entry_0.name.size() - encoding:NSUTF8StringEncoding]; + length:entry_0.name.size() + encoding:NSUTF8StringEncoding]; newElement_0.type = [NSNumber numberWithUnsignedChar:chip::to_underlying(entry_0.type)]; newElement_0.endpointListID = [NSNumber numberWithUnsignedShort:entry_0.endpointListID]; newElement_0.supportedCommands = [NSNumber numberWithUnsignedShort:entry_0.supportedCommands]; @@ -2310,11 +2312,11 @@ } void MTRBridgedActionsEndpointListListAttributeCallbackBridge::OnSuccessFn(void * context, - const chip::app::DataModel::DecodableList & + const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -2323,10 +2325,10 @@ newElement_0 = [MTRBridgedActionsClusterEndpointListStruct new]; newElement_0.endpointListID = [NSNumber numberWithUnsignedShort:entry_0.endpointListID]; newElement_0.name = [[NSString alloc] initWithBytes:entry_0.name.data() - length:entry_0.name.size() - encoding:NSUTF8StringEncoding]; + length:entry_0.name.size() + encoding:NSUTF8StringEncoding]; newElement_0.type = [NSNumber numberWithUnsignedChar:chip::to_underlying(entry_0.type)]; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_2 = [NSMutableArray new]; auto iter_2 = entry_0.endpoints.begin(); while (iter_2.Next()) { @@ -2374,7 +2376,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -2413,7 +2415,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -2452,7 +2454,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -2517,7 +2519,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -2556,7 +2558,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -2595,7 +2597,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -2634,7 +2636,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -2674,7 +2676,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -2714,7 +2716,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -2750,11 +2752,11 @@ } void MTROtaSoftwareUpdateRequestorDefaultOtaProvidersListAttributeCallbackBridge::OnSuccessFn(void * context, - const chip::app::DataModel::DecodableList< + const chip::app::DataModel::DecodableList< chip::app::Clusters::OtaSoftwareUpdateRequestor::Structs::ProviderLocation::DecodableType> & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -2797,7 +2799,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -2837,7 +2839,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -2877,7 +2879,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -2916,7 +2918,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -2955,7 +2957,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -2995,7 +2997,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -3035,7 +3037,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -3074,7 +3076,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -3114,7 +3116,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -3153,7 +3155,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -3192,7 +3194,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -3231,7 +3233,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -3270,7 +3272,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -3309,7 +3311,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -3348,7 +3350,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -3387,7 +3389,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -3427,7 +3429,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -3467,7 +3469,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -3506,7 +3508,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -3545,7 +3547,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -3584,7 +3586,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -3623,7 +3625,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -3662,7 +3664,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -3701,7 +3703,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -3767,7 +3769,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -3806,7 +3808,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -3845,7 +3847,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -3881,11 +3883,11 @@ } void MTRNetworkCommissioningNetworksListAttributeCallbackBridge::OnSuccessFn(void * context, - const chip::app::DataModel::DecodableList & + const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -3926,7 +3928,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -3965,7 +3967,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -4004,7 +4006,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -4043,7 +4045,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -4082,7 +4084,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -4121,7 +4123,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -4157,11 +4159,11 @@ } void MTRGeneralDiagnosticsNetworkInterfacesListAttributeCallbackBridge::OnSuccessFn(void * context, - const chip::app::DataModel::DecodableList< + const chip::app::DataModel::DecodableList< chip::app::Clusters::GeneralDiagnostics::Structs::NetworkInterfaceType::DecodableType> & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -4169,8 +4171,8 @@ MTRGeneralDiagnosticsClusterNetworkInterfaceType * newElement_0; newElement_0 = [MTRGeneralDiagnosticsClusterNetworkInterfaceType new]; newElement_0.name = [[NSString alloc] initWithBytes:entry_0.name.data() - length:entry_0.name.size() - encoding:NSUTF8StringEncoding]; + length:entry_0.name.size() + encoding:NSUTF8StringEncoding]; newElement_0.isOperational = [NSNumber numberWithBool:entry_0.isOperational]; if (entry_0.offPremiseServicesReachableIPv4.IsNull()) { newElement_0.offPremiseServicesReachableIPv4 = nil; @@ -4185,8 +4187,8 @@ [NSNumber numberWithBool:entry_0.offPremiseServicesReachableIPv6.Value()]; } newElement_0.hardwareAddress = [NSData dataWithBytes:entry_0.hardwareAddress.data() - length:entry_0.hardwareAddress.size()]; - { // Scope for our temporary variables + length:entry_0.hardwareAddress.size()]; + { // Scope for our temporary variables auto * array_2 = [NSMutableArray new]; auto iter_2 = entry_0.IPv4Addresses.begin(); while (iter_2.Next()) { @@ -4202,7 +4204,7 @@ } newElement_0.iPv4Addresses = array_2; } - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_2 = [NSMutableArray new]; auto iter_2 = entry_0.IPv6Addresses.begin(); while (iter_2.Next()) { @@ -4251,7 +4253,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -4290,7 +4292,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -4329,7 +4331,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -4368,7 +4370,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -4407,7 +4409,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -4446,7 +4448,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -4482,11 +4484,11 @@ } void MTRSoftwareDiagnosticsThreadMetricsListAttributeCallbackBridge::OnSuccessFn(void * context, - const chip::app::DataModel::DecodableList & + const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -4496,8 +4498,8 @@ newElement_0.id = [NSNumber numberWithUnsignedLongLong:entry_0.id]; if (entry_0.name.HasValue()) { newElement_0.name = [[NSString alloc] initWithBytes:entry_0.name.Value().data() - length:entry_0.name.Value().size() - encoding:NSUTF8StringEncoding]; + length:entry_0.name.Value().size() + encoding:NSUTF8StringEncoding]; } else { newElement_0.name = nil; } @@ -4548,7 +4550,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -4587,7 +4589,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -4626,7 +4628,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -4662,11 +4664,11 @@ } void MTRThreadNetworkDiagnosticsNeighborTableListListAttributeCallbackBridge::OnSuccessFn(void * context, - const chip::app::DataModel::DecodableList< + const chip::app::DataModel::DecodableList< chip::app::Clusters::ThreadNetworkDiagnostics::Structs::NeighborTable::DecodableType> & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -4724,11 +4726,11 @@ } void MTRThreadNetworkDiagnosticsRouteTableListListAttributeCallbackBridge::OnSuccessFn(void * context, - const chip::app::DataModel::DecodableList & + const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -4774,7 +4776,7 @@ } void MTRThreadNetworkDiagnosticsSecurityPolicyStructAttributeCallbackBridge::OnSuccessFn(void * context, - const chip::app::DataModel::Nullable & + const chip::app::DataModel::Nullable & value) { MTRThreadNetworkDiagnosticsClusterSecurityPolicy * _Nullable objCValue; @@ -4805,7 +4807,7 @@ } void MTRThreadNetworkDiagnosticsOperationalDatasetComponentsStructAttributeCallbackBridge::OnSuccessFn(void * context, - const chip::app::DataModel::Nullable< + const chip::app::DataModel::Nullable< chip::app::Clusters::ThreadNetworkDiagnostics::Structs::OperationalDatasetComponents::DecodableType> & value) { MTRThreadNetworkDiagnosticsClusterOperationalDatasetComponents * _Nullable objCValue; @@ -4851,7 +4853,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -4891,7 +4893,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -4931,7 +4933,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -4971,7 +4973,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -5010,7 +5012,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -5049,7 +5051,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -5088,7 +5090,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -5127,7 +5129,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -5167,7 +5169,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -5207,7 +5209,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -5246,7 +5248,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -5285,7 +5287,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -5324,7 +5326,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -5363,7 +5365,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -5402,7 +5404,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -5441,7 +5443,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -5480,7 +5482,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -5520,7 +5522,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -5560,7 +5562,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -5596,11 +5598,11 @@ } void MTROperationalCredentialsNOCsListAttributeCallbackBridge::OnSuccessFn(void * context, - const chip::app::DataModel::DecodableList & + const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -5643,11 +5645,11 @@ } void MTROperationalCredentialsFabricsListAttributeCallbackBridge::OnSuccessFn(void * context, - const chip::app::DataModel::DecodableList< + const chip::app::DataModel::DecodableList< chip::app::Clusters::OperationalCredentials::Structs::FabricDescriptor::DecodableType> & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -5659,8 +5661,8 @@ newElement_0.fabricId = [NSNumber numberWithUnsignedLongLong:entry_0.fabricId]; newElement_0.nodeId = [NSNumber numberWithUnsignedLongLong:entry_0.nodeId]; newElement_0.label = [[NSString alloc] initWithBytes:entry_0.label.data() - length:entry_0.label.size() - encoding:NSUTF8StringEncoding]; + length:entry_0.label.size() + encoding:NSUTF8StringEncoding]; newElement_0.fabricIndex = [NSNumber numberWithUnsignedChar:entry_0.fabricIndex]; [array_0 addObject:newElement_0]; } @@ -5694,7 +5696,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -5734,7 +5736,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -5773,7 +5775,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -5812,7 +5814,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -5848,11 +5850,11 @@ } void MTRGroupKeyManagementGroupKeyMapListAttributeCallbackBridge::OnSuccessFn(void * context, - const chip::app::DataModel::DecodableList & + const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -5891,11 +5893,11 @@ } void MTRGroupKeyManagementGroupTableListAttributeCallbackBridge::OnSuccessFn(void * context, - const chip::app::DataModel::DecodableList & + const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -5903,7 +5905,7 @@ MTRGroupKeyManagementClusterGroupInfoMapStruct * newElement_0; newElement_0 = [MTRGroupKeyManagementClusterGroupInfoMapStruct new]; newElement_0.groupId = [NSNumber numberWithUnsignedShort:entry_0.groupId]; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_2 = [NSMutableArray new]; auto iter_2 = entry_0.endpoints.begin(); while (iter_2.Next()) { @@ -5921,8 +5923,8 @@ } if (entry_0.groupName.HasValue()) { newElement_0.groupName = [[NSString alloc] initWithBytes:entry_0.groupName.Value().data() - length:entry_0.groupName.Value().size() - encoding:NSUTF8StringEncoding]; + length:entry_0.groupName.Value().size() + encoding:NSUTF8StringEncoding]; } else { newElement_0.groupName = nil; } @@ -5959,7 +5961,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -5998,7 +6000,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -6037,7 +6039,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -6073,10 +6075,10 @@ } void MTRFixedLabelLabelListListAttributeCallbackBridge::OnSuccessFn(void * context, - const chip::app::DataModel::DecodableList & value) + const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -6084,11 +6086,11 @@ MTRFixedLabelClusterLabelStruct * newElement_0; newElement_0 = [MTRFixedLabelClusterLabelStruct new]; newElement_0.label = [[NSString alloc] initWithBytes:entry_0.label.data() - length:entry_0.label.size() - encoding:NSUTF8StringEncoding]; + length:entry_0.label.size() + encoding:NSUTF8StringEncoding]; newElement_0.value = [[NSString alloc] initWithBytes:entry_0.value.data() - length:entry_0.value.size() - encoding:NSUTF8StringEncoding]; + length:entry_0.value.size() + encoding:NSUTF8StringEncoding]; [array_0 addObject:newElement_0]; } CHIP_ERROR err = iter_0.GetStatus(); @@ -6121,7 +6123,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -6160,7 +6162,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -6199,7 +6201,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -6235,10 +6237,10 @@ } void MTRUserLabelLabelListListAttributeCallbackBridge::OnSuccessFn(void * context, - const chip::app::DataModel::DecodableList & value) + const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -6246,11 +6248,11 @@ MTRUserLabelClusterLabelStruct * newElement_0; newElement_0 = [MTRUserLabelClusterLabelStruct new]; newElement_0.label = [[NSString alloc] initWithBytes:entry_0.label.data() - length:entry_0.label.size() - encoding:NSUTF8StringEncoding]; + length:entry_0.label.size() + encoding:NSUTF8StringEncoding]; newElement_0.value = [[NSString alloc] initWithBytes:entry_0.value.data() - length:entry_0.value.size() - encoding:NSUTF8StringEncoding]; + length:entry_0.value.size() + encoding:NSUTF8StringEncoding]; [array_0 addObject:newElement_0]; } CHIP_ERROR err = iter_0.GetStatus(); @@ -6283,7 +6285,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -6322,7 +6324,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -6361,7 +6363,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -6400,7 +6402,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -6439,7 +6441,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -6478,7 +6480,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -6514,10 +6516,10 @@ } void MTRModeSelectSupportedModesListAttributeCallbackBridge::OnSuccessFn(void * context, - const chip::app::DataModel::DecodableList & value) + const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -6525,10 +6527,10 @@ MTRModeSelectClusterModeOptionStruct * newElement_0; newElement_0 = [MTRModeSelectClusterModeOptionStruct new]; newElement_0.label = [[NSString alloc] initWithBytes:entry_0.label.data() - length:entry_0.label.size() - encoding:NSUTF8StringEncoding]; + length:entry_0.label.size() + encoding:NSUTF8StringEncoding]; newElement_0.mode = [NSNumber numberWithUnsignedChar:entry_0.mode]; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_2 = [NSMutableArray new]; auto iter_2 = entry_0.semanticTags.begin(); while (iter_2.Next()) { @@ -6578,7 +6580,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -6617,7 +6619,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -6656,7 +6658,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -6791,7 +6793,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -6830,7 +6832,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -6869,7 +6871,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -7004,7 +7006,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -7043,7 +7045,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -7082,7 +7084,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -7121,7 +7123,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -7160,7 +7162,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -7199,7 +7201,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -7262,7 +7264,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -7302,7 +7304,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -7342,7 +7344,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -7381,7 +7383,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -7420,7 +7422,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -7459,7 +7461,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -7498,7 +7500,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -7537,7 +7539,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -7576,7 +7578,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -7615,7 +7617,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -7638,7 +7640,7 @@ void * context) { auto * self = static_cast( - context); + context); if (!self->mQueue) { return; } @@ -7656,7 +7658,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -7697,7 +7699,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -7738,7 +7740,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -7777,7 +7779,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -7816,7 +7818,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -7855,7 +7857,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -7894,7 +7896,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -7933,7 +7935,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -7972,7 +7974,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -8011,7 +8013,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -8050,7 +8052,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -8089,7 +8091,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -8128,7 +8130,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -8167,7 +8169,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -8206,7 +8208,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -8245,7 +8247,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -8284,7 +8286,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -8323,7 +8325,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -8363,7 +8365,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -8403,7 +8405,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -8442,7 +8444,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -8481,7 +8483,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -8520,7 +8522,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -8559,7 +8561,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -8598,7 +8600,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -8637,7 +8639,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -8673,10 +8675,10 @@ } void MTRChannelChannelListListAttributeCallbackBridge::OnSuccessFn(void * context, - const chip::app::DataModel::DecodableList & value) + const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -8687,22 +8689,22 @@ newElement_0.minorNumber = [NSNumber numberWithUnsignedShort:entry_0.minorNumber]; if (entry_0.name.HasValue()) { newElement_0.name = [[NSString alloc] initWithBytes:entry_0.name.Value().data() - length:entry_0.name.Value().size() - encoding:NSUTF8StringEncoding]; + length:entry_0.name.Value().size() + encoding:NSUTF8StringEncoding]; } else { newElement_0.name = nil; } if (entry_0.callSign.HasValue()) { newElement_0.callSign = [[NSString alloc] initWithBytes:entry_0.callSign.Value().data() - length:entry_0.callSign.Value().size() - encoding:NSUTF8StringEncoding]; + length:entry_0.callSign.Value().size() + encoding:NSUTF8StringEncoding]; } else { newElement_0.callSign = nil; } if (entry_0.affiliateCallSign.HasValue()) { newElement_0.affiliateCallSign = [[NSString alloc] initWithBytes:entry_0.affiliateCallSign.Value().data() - length:entry_0.affiliateCallSign.Value().size() - encoding:NSUTF8StringEncoding]; + length:entry_0.affiliateCallSign.Value().size() + encoding:NSUTF8StringEncoding]; } else { newElement_0.affiliateCallSign = nil; } @@ -8743,19 +8745,19 @@ } else { objCValue = [MTRChannelClusterLineupInfo new]; objCValue.operatorName = [[NSString alloc] initWithBytes:value.Value().operatorName.data() - length:value.Value().operatorName.size() - encoding:NSUTF8StringEncoding]; + length:value.Value().operatorName.size() + encoding:NSUTF8StringEncoding]; if (value.Value().lineupName.HasValue()) { objCValue.lineupName = [[NSString alloc] initWithBytes:value.Value().lineupName.Value().data() - length:value.Value().lineupName.Value().size() - encoding:NSUTF8StringEncoding]; + length:value.Value().lineupName.Value().size() + encoding:NSUTF8StringEncoding]; } else { objCValue.lineupName = nil; } if (value.Value().postalCode.HasValue()) { objCValue.postalCode = [[NSString alloc] initWithBytes:value.Value().postalCode.Value().data() - length:value.Value().postalCode.Value().size() - encoding:NSUTF8StringEncoding]; + length:value.Value().postalCode.Value().size() + encoding:NSUTF8StringEncoding]; } else { objCValue.postalCode = nil; } @@ -8792,22 +8794,22 @@ objCValue.minorNumber = [NSNumber numberWithUnsignedShort:value.Value().minorNumber]; if (value.Value().name.HasValue()) { objCValue.name = [[NSString alloc] initWithBytes:value.Value().name.Value().data() - length:value.Value().name.Value().size() - encoding:NSUTF8StringEncoding]; + length:value.Value().name.Value().size() + encoding:NSUTF8StringEncoding]; } else { objCValue.name = nil; } if (value.Value().callSign.HasValue()) { objCValue.callSign = [[NSString alloc] initWithBytes:value.Value().callSign.Value().data() - length:value.Value().callSign.Value().size() - encoding:NSUTF8StringEncoding]; + length:value.Value().callSign.Value().size() + encoding:NSUTF8StringEncoding]; } else { objCValue.callSign = nil; } if (value.Value().affiliateCallSign.HasValue()) { objCValue.affiliateCallSign = [[NSString alloc] initWithBytes:value.Value().affiliateCallSign.Value().data() - length:value.Value().affiliateCallSign.Value().size() - encoding:NSUTF8StringEncoding]; + length:value.Value().affiliateCallSign.Value().size() + encoding:NSUTF8StringEncoding]; } else { objCValue.affiliateCallSign = nil; } @@ -8835,7 +8837,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -8874,7 +8876,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -8913,7 +8915,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -8949,10 +8951,10 @@ } void MTRTargetNavigatorTargetListListAttributeCallbackBridge::OnSuccessFn(void * context, - const chip::app::DataModel::DecodableList & value) + const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -8961,8 +8963,8 @@ newElement_0 = [MTRTargetNavigatorClusterTargetInfo new]; newElement_0.identifier = [NSNumber numberWithUnsignedChar:entry_0.identifier]; newElement_0.name = [[NSString alloc] initWithBytes:entry_0.name.data() - length:entry_0.name.size() - encoding:NSUTF8StringEncoding]; + length:entry_0.name.size() + encoding:NSUTF8StringEncoding]; [array_0 addObject:newElement_0]; } CHIP_ERROR err = iter_0.GetStatus(); @@ -8995,7 +8997,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -9034,7 +9036,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -9073,7 +9075,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -9109,7 +9111,7 @@ } void MTRMediaPlaybackSampledPositionStructAttributeCallbackBridge::OnSuccessFn(void * context, - const chip::app::DataModel::Nullable & value) + const chip::app::DataModel::Nullable & value) { MTRMediaPlaybackClusterPlaybackPosition * _Nullable objCValue; if (value.IsNull()) { @@ -9146,7 +9148,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -9185,7 +9187,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -9224,7 +9226,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -9260,10 +9262,10 @@ } void MTRMediaInputInputListListAttributeCallbackBridge::OnSuccessFn(void * context, - const chip::app::DataModel::DecodableList & value) + const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -9273,11 +9275,11 @@ newElement_0.index = [NSNumber numberWithUnsignedChar:entry_0.index]; newElement_0.inputType = [NSNumber numberWithUnsignedChar:chip::to_underlying(entry_0.inputType)]; newElement_0.name = [[NSString alloc] initWithBytes:entry_0.name.data() - length:entry_0.name.size() - encoding:NSUTF8StringEncoding]; + length:entry_0.name.size() + encoding:NSUTF8StringEncoding]; newElement_0.descriptionString = [[NSString alloc] initWithBytes:entry_0.description.data() - length:entry_0.description.size() - encoding:NSUTF8StringEncoding]; + length:entry_0.description.size() + encoding:NSUTF8StringEncoding]; [array_0 addObject:newElement_0]; } CHIP_ERROR err = iter_0.GetStatus(); @@ -9310,7 +9312,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -9349,7 +9351,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -9388,7 +9390,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -9427,7 +9429,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -9466,7 +9468,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -9505,7 +9507,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -9544,7 +9546,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -9583,7 +9585,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -9622,7 +9624,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -9661,7 +9663,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -9700,7 +9702,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -9739,7 +9741,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -9778,7 +9780,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -9814,10 +9816,10 @@ } void MTRAudioOutputOutputListListAttributeCallbackBridge::OnSuccessFn(void * context, - const chip::app::DataModel::DecodableList & value) + const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -9827,8 +9829,8 @@ newElement_0.index = [NSNumber numberWithUnsignedChar:entry_0.index]; newElement_0.outputType = [NSNumber numberWithUnsignedChar:chip::to_underlying(entry_0.outputType)]; newElement_0.name = [[NSString alloc] initWithBytes:entry_0.name.data() - length:entry_0.name.size() - encoding:NSUTF8StringEncoding]; + length:entry_0.name.size() + encoding:NSUTF8StringEncoding]; [array_0 addObject:newElement_0]; } CHIP_ERROR err = iter_0.GetStatus(); @@ -9861,7 +9863,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -9900,7 +9902,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -9939,7 +9941,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -9978,7 +9980,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -10014,7 +10016,7 @@ } void MTRApplicationLauncherCurrentAppStructAttributeCallbackBridge::OnSuccessFn(void * context, - const chip::app::DataModel::Nullable & value) + const chip::app::DataModel::Nullable & value) { MTRApplicationLauncherClusterApplicationEP * _Nullable objCValue; if (value.IsNull()) { @@ -10024,8 +10026,8 @@ objCValue.application = [MTRApplicationLauncherClusterApplication new]; objCValue.application.catalogVendorId = [NSNumber numberWithUnsignedShort:value.Value().application.catalogVendorId]; objCValue.application.applicationId = [[NSString alloc] initWithBytes:value.Value().application.applicationId.data() - length:value.Value().application.applicationId.size() - encoding:NSUTF8StringEncoding]; + length:value.Value().application.applicationId.size() + encoding:NSUTF8StringEncoding]; if (value.Value().endpoint.HasValue()) { objCValue.endpoint = [NSNumber numberWithUnsignedShort:value.Value().endpoint.Value()]; } else { @@ -10055,7 +10057,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -10094,7 +10096,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -10133,7 +10135,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -10175,8 +10177,8 @@ objCValue = [MTRApplicationBasicClusterApplicationBasicApplication new]; objCValue.catalogVendorId = [NSNumber numberWithUnsignedShort:value.catalogVendorId]; objCValue.applicationId = [[NSString alloc] initWithBytes:value.applicationId.data() - length:value.applicationId.size() - encoding:NSUTF8StringEncoding]; + length:value.applicationId.size() + encoding:NSUTF8StringEncoding]; DispatchSuccess(context, objCValue); }; @@ -10200,7 +10202,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -10239,7 +10241,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -10278,7 +10280,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -10317,7 +10319,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -10356,7 +10358,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -10395,7 +10397,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -10434,7 +10436,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -10473,7 +10475,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -10512,7 +10514,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -10551,7 +10553,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -10686,7 +10688,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -10725,7 +10727,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -10761,11 +10763,11 @@ } void MTRTestClusterListStructOctetStringListAttributeCallbackBridge::OnSuccessFn(void * context, - const chip::app::DataModel::DecodableList & + const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -10803,11 +10805,11 @@ } void MTRTestClusterListNullablesAndOptionalsStructListAttributeCallbackBridge::OnSuccessFn(void * context, - const chip::app::DataModel::DecodableList< + const chip::app::DataModel::DecodableList< chip::app::Clusters::TestCluster::Structs::NullablesAndOptionalsStruct::DecodableType> & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -10838,13 +10840,13 @@ newElement_0.nullableString = nil; } else { newElement_0.nullableString = [[NSString alloc] initWithBytes:entry_0.nullableString.Value().data() - length:entry_0.nullableString.Value().size() - encoding:NSUTF8StringEncoding]; + length:entry_0.nullableString.Value().size() + encoding:NSUTF8StringEncoding]; } if (entry_0.optionalString.HasValue()) { newElement_0.optionalString = [[NSString alloc] initWithBytes:entry_0.optionalString.Value().data() - length:entry_0.optionalString.Value().size() - encoding:NSUTF8StringEncoding]; + length:entry_0.optionalString.Value().size() + encoding:NSUTF8StringEncoding]; } else { newElement_0.optionalString = nil; } @@ -10854,8 +10856,8 @@ } else { newElement_0.nullableOptionalString = [[NSString alloc] initWithBytes:entry_0.nullableOptionalString.Value().Value().data() - length:entry_0.nullableOptionalString.Value().Value().size() - encoding:NSUTF8StringEncoding]; + length:entry_0.nullableOptionalString.Value().Value().size() + encoding:NSUTF8StringEncoding]; } } else { newElement_0.nullableOptionalString = nil; @@ -10869,10 +10871,10 @@ newElement_0.nullableStruct.c = [NSNumber numberWithUnsignedChar:chip::to_underlying(entry_0.nullableStruct.Value().c)]; newElement_0.nullableStruct.d = [NSData dataWithBytes:entry_0.nullableStruct.Value().d.data() - length:entry_0.nullableStruct.Value().d.size()]; + length:entry_0.nullableStruct.Value().d.size()]; newElement_0.nullableStruct.e = [[NSString alloc] initWithBytes:entry_0.nullableStruct.Value().e.data() - length:entry_0.nullableStruct.Value().e.size() - encoding:NSUTF8StringEncoding]; + length:entry_0.nullableStruct.Value().e.size() + encoding:NSUTF8StringEncoding]; newElement_0.nullableStruct.f = [NSNumber numberWithUnsignedChar:entry_0.nullableStruct.Value().f.Raw()]; newElement_0.nullableStruct.g = [NSNumber numberWithFloat:entry_0.nullableStruct.Value().g]; newElement_0.nullableStruct.h = [NSNumber numberWithDouble:entry_0.nullableStruct.Value().h]; @@ -10884,10 +10886,10 @@ newElement_0.optionalStruct.c = [NSNumber numberWithUnsignedChar:chip::to_underlying(entry_0.optionalStruct.Value().c)]; newElement_0.optionalStruct.d = [NSData dataWithBytes:entry_0.optionalStruct.Value().d.data() - length:entry_0.optionalStruct.Value().d.size()]; + length:entry_0.optionalStruct.Value().d.size()]; newElement_0.optionalStruct.e = [[NSString alloc] initWithBytes:entry_0.optionalStruct.Value().e.data() - length:entry_0.optionalStruct.Value().e.size() - encoding:NSUTF8StringEncoding]; + length:entry_0.optionalStruct.Value().e.size() + encoding:NSUTF8StringEncoding]; newElement_0.optionalStruct.f = [NSNumber numberWithUnsignedChar:entry_0.optionalStruct.Value().f.Raw()]; newElement_0.optionalStruct.g = [NSNumber numberWithFloat:entry_0.optionalStruct.Value().g]; newElement_0.optionalStruct.h = [NSNumber numberWithDouble:entry_0.optionalStruct.Value().h]; @@ -10907,11 +10909,11 @@ [NSNumber numberWithUnsignedChar:chip::to_underlying(entry_0.nullableOptionalStruct.Value().Value().c)]; newElement_0.nullableOptionalStruct.d = [NSData dataWithBytes:entry_0.nullableOptionalStruct.Value().Value().d.data() - length:entry_0.nullableOptionalStruct.Value().Value().d.size()]; + length:entry_0.nullableOptionalStruct.Value().Value().d.size()]; newElement_0.nullableOptionalStruct.e = [[NSString alloc] initWithBytes:entry_0.nullableOptionalStruct.Value().Value().e.data() - length:entry_0.nullableOptionalStruct.Value().Value().e.size() - encoding:NSUTF8StringEncoding]; + length:entry_0.nullableOptionalStruct.Value().Value().e.size() + encoding:NSUTF8StringEncoding]; newElement_0.nullableOptionalStruct.f = [NSNumber numberWithUnsignedChar:entry_0.nullableOptionalStruct.Value().Value().f.Raw()]; newElement_0.nullableOptionalStruct.g = @@ -10925,7 +10927,7 @@ if (entry_0.nullableList.IsNull()) { newElement_0.nullableList = nil; } else { - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_3 = [NSMutableArray new]; auto iter_3 = entry_0.nullableList.Value().begin(); while (iter_3.Next()) { @@ -10943,7 +10945,7 @@ } } if (entry_0.optionalList.HasValue()) { - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_3 = [NSMutableArray new]; auto iter_3 = entry_0.optionalList.Value().begin(); while (iter_3.Next()) { @@ -10966,7 +10968,7 @@ if (entry_0.nullableOptionalList.Value().IsNull()) { newElement_0.nullableOptionalList = nil; } else { - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_4 = [NSMutableArray new]; auto iter_4 = entry_0.nullableOptionalList.Value().Value().begin(); while (iter_4.Next()) { @@ -11050,7 +11052,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -11086,10 +11088,10 @@ } void MTRTestClusterListFabricScopedListAttributeCallbackBridge::OnSuccessFn(void * context, - const chip::app::DataModel::DecodableList & value) + const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -11120,22 +11122,22 @@ newElement_0.nullableOptionalFabricSensitiveInt8u = nil; } newElement_0.fabricSensitiveCharString = [[NSString alloc] initWithBytes:entry_0.fabricSensitiveCharString.data() - length:entry_0.fabricSensitiveCharString.size() - encoding:NSUTF8StringEncoding]; + length:entry_0.fabricSensitiveCharString.size() + encoding:NSUTF8StringEncoding]; newElement_0.fabricSensitiveStruct = [MTRTestClusterClusterSimpleStruct new]; newElement_0.fabricSensitiveStruct.a = [NSNumber numberWithUnsignedChar:entry_0.fabricSensitiveStruct.a]; newElement_0.fabricSensitiveStruct.b = [NSNumber numberWithBool:entry_0.fabricSensitiveStruct.b]; newElement_0.fabricSensitiveStruct.c = [NSNumber numberWithUnsignedChar:chip::to_underlying(entry_0.fabricSensitiveStruct.c)]; newElement_0.fabricSensitiveStruct.d = [NSData dataWithBytes:entry_0.fabricSensitiveStruct.d.data() - length:entry_0.fabricSensitiveStruct.d.size()]; + length:entry_0.fabricSensitiveStruct.d.size()]; newElement_0.fabricSensitiveStruct.e = [[NSString alloc] initWithBytes:entry_0.fabricSensitiveStruct.e.data() - length:entry_0.fabricSensitiveStruct.e.size() - encoding:NSUTF8StringEncoding]; + length:entry_0.fabricSensitiveStruct.e.size() + encoding:NSUTF8StringEncoding]; newElement_0.fabricSensitiveStruct.f = [NSNumber numberWithUnsignedChar:entry_0.fabricSensitiveStruct.f.Raw()]; newElement_0.fabricSensitiveStruct.g = [NSNumber numberWithFloat:entry_0.fabricSensitiveStruct.g]; newElement_0.fabricSensitiveStruct.h = [NSNumber numberWithDouble:entry_0.fabricSensitiveStruct.h]; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_2 = [NSMutableArray new]; auto iter_2 = entry_0.fabricSensitiveInt8uList.begin(); while (iter_2.Next()) { @@ -11293,7 +11295,7 @@ } void MTRTestClusterNullableStructStructAttributeCallbackBridge::OnSuccessFn(void * context, - const chip::app::DataModel::Nullable & value) + const chip::app::DataModel::Nullable & value) { MTRTestClusterClusterSimpleStruct * _Nullable objCValue; if (value.IsNull()) { @@ -11305,8 +11307,8 @@ objCValue.c = [NSNumber numberWithUnsignedChar:chip::to_underlying(value.Value().c)]; objCValue.d = [NSData dataWithBytes:value.Value().d.data() length:value.Value().d.size()]; objCValue.e = [[NSString alloc] initWithBytes:value.Value().e.data() - length:value.Value().e.size() - encoding:NSUTF8StringEncoding]; + length:value.Value().e.size() + encoding:NSUTF8StringEncoding]; objCValue.f = [NSNumber numberWithUnsignedChar:value.Value().f.Raw()]; objCValue.g = [NSNumber numberWithFloat:value.Value().g]; objCValue.h = [NSNumber numberWithDouble:value.Value().h]; @@ -11334,7 +11336,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -11373,7 +11375,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -11412,7 +11414,7 @@ void * context, const chip::app::DataModel::DecodableList & value) { NSArray * _Nonnull objCValue; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = value.begin(); while (iter_0.Next()) { @@ -11472,8 +11474,8 @@ } { response.groupName = [[NSString alloc] initWithBytes:data.groupName.data() - length:data.groupName.size() - encoding:NSUTF8StringEncoding]; + length:data.groupName.size() + encoding:NSUTF8StringEncoding]; } DispatchSuccess(context, response); }; @@ -11490,7 +11492,7 @@ } } { - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = data.groupList.begin(); while (iter_0.Next()) { @@ -11562,15 +11564,15 @@ { if (data.sceneName.HasValue()) { response.sceneName = [[NSString alloc] initWithBytes:data.sceneName.Value().data() - length:data.sceneName.Value().size() - encoding:NSUTF8StringEncoding]; + length:data.sceneName.Value().size() + encoding:NSUTF8StringEncoding]; } else { response.sceneName = nil; } } { if (data.extensionFieldSets.HasValue()) { - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_1 = [NSMutableArray new]; auto iter_1 = data.extensionFieldSets.Value().begin(); while (iter_1.Next()) { @@ -11578,7 +11580,7 @@ MTRScenesClusterExtensionFieldSet * newElement_1; newElement_1 = [MTRScenesClusterExtensionFieldSet new]; newElement_1.clusterId = [NSNumber numberWithUnsignedInt:entry_1.clusterId]; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_3 = [NSMutableArray new]; auto iter_3 = entry_1.attributeValueList.begin(); while (iter_3.Next()) { @@ -11590,7 +11592,7 @@ } else { newElement_3.attributeId = nil; } - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_5 = [NSMutableArray new]; auto iter_5 = entry_3.attributeValue.begin(); while (iter_5.Next()) { @@ -11695,7 +11697,7 @@ } { if (data.sceneList.HasValue()) { - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_1 = [NSMutableArray new]; auto iter_1 = data.sceneList.Value().begin(); while (iter_1.Next()) { @@ -11757,15 +11759,15 @@ { if (data.sceneName.HasValue()) { response.sceneName = [[NSString alloc] initWithBytes:data.sceneName.Value().data() - length:data.sceneName.Value().size() - encoding:NSUTF8StringEncoding]; + length:data.sceneName.Value().size() + encoding:NSUTF8StringEncoding]; } else { response.sceneName = nil; } } { if (data.extensionFieldSets.HasValue()) { - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_1 = [NSMutableArray new]; auto iter_1 = data.extensionFieldSets.Value().begin(); while (iter_1.Next()) { @@ -11773,7 +11775,7 @@ MTRScenesClusterExtensionFieldSet * newElement_1; newElement_1 = [MTRScenesClusterExtensionFieldSet new]; newElement_1.clusterId = [NSNumber numberWithUnsignedInt:entry_1.clusterId]; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_3 = [NSMutableArray new]; auto iter_3 = entry_1.attributeValueList.begin(); while (iter_3.Next()) { @@ -11785,7 +11787,7 @@ } else { newElement_3.attributeId = nil; } - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_5 = [NSMutableArray new]; auto iter_5 = entry_3.attributeValue.begin(); while (iter_5.Next()) { @@ -11859,8 +11861,8 @@ { if (data.imageURI.HasValue()) { response.imageURI = [[NSString alloc] initWithBytes:data.imageURI.Value().data() - length:data.imageURI.Value().size() - encoding:NSUTF8StringEncoding]; + length:data.imageURI.Value().size() + encoding:NSUTF8StringEncoding]; } else { response.imageURI = nil; } @@ -11875,8 +11877,8 @@ { if (data.softwareVersionString.HasValue()) { response.softwareVersionString = [[NSString alloc] initWithBytes:data.softwareVersionString.Value().data() - length:data.softwareVersionString.Value().size() - encoding:NSUTF8StringEncoding]; + length:data.softwareVersionString.Value().size() + encoding:NSUTF8StringEncoding]; } else { response.softwareVersionString = nil; } @@ -11898,7 +11900,7 @@ { if (data.metadataForRequestor.HasValue()) { response.metadataForRequestor = [NSData dataWithBytes:data.metadataForRequestor.Value().data() - length:data.metadataForRequestor.Value().size()]; + length:data.metadataForRequestor.Value().size()]; } else { response.metadataForRequestor = nil; } @@ -11928,8 +11930,8 @@ } { response.debugText = [[NSString alloc] initWithBytes:data.debugText.data() - length:data.debugText.size() - encoding:NSUTF8StringEncoding]; + length:data.debugText.size() + encoding:NSUTF8StringEncoding]; } DispatchSuccess(context, response); }; @@ -11943,8 +11945,8 @@ } { response.debugText = [[NSString alloc] initWithBytes:data.debugText.data() - length:data.debugText.size() - encoding:NSUTF8StringEncoding]; + length:data.debugText.size() + encoding:NSUTF8StringEncoding]; } DispatchSuccess(context, response); }; @@ -11958,8 +11960,8 @@ } { response.debugText = [[NSString alloc] initWithBytes:data.debugText.data() - length:data.debugText.size() - encoding:NSUTF8StringEncoding]; + length:data.debugText.size() + encoding:NSUTF8StringEncoding]; } DispatchSuccess(context, response); }; @@ -11974,15 +11976,15 @@ { if (data.debugText.HasValue()) { response.debugText = [[NSString alloc] initWithBytes:data.debugText.Value().data() - length:data.debugText.Value().size() - encoding:NSUTF8StringEncoding]; + length:data.debugText.Value().size() + encoding:NSUTF8StringEncoding]; } else { response.debugText = nil; } } { if (data.wiFiScanResults.HasValue()) { - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_1 = [NSMutableArray new]; auto iter_1 = data.wiFiScanResults.Value().begin(); while (iter_1.Next()) { @@ -12010,7 +12012,7 @@ } { if (data.threadScanResults.HasValue()) { - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_1 = [NSMutableArray new]; auto iter_1 = data.threadScanResults.Value().begin(); while (iter_1.Next()) { @@ -12020,12 +12022,12 @@ newElement_1.panId = [NSNumber numberWithUnsignedShort:entry_1.panId]; newElement_1.extendedPanId = [NSNumber numberWithUnsignedLongLong:entry_1.extendedPanId]; newElement_1.networkName = [[NSString alloc] initWithBytes:entry_1.networkName.data() - length:entry_1.networkName.size() - encoding:NSUTF8StringEncoding]; + length:entry_1.networkName.size() + encoding:NSUTF8StringEncoding]; newElement_1.channel = [NSNumber numberWithUnsignedShort:entry_1.channel]; newElement_1.version = [NSNumber numberWithUnsignedChar:entry_1.version]; newElement_1.extendedAddress = [NSData dataWithBytes:entry_1.extendedAddress.data() - length:entry_1.extendedAddress.size()]; + length:entry_1.extendedAddress.size()]; newElement_1.rssi = [NSNumber numberWithChar:entry_1.rssi]; newElement_1.lqi = [NSNumber numberWithUnsignedChar:entry_1.lqi]; [array_1 addObject:newElement_1]; @@ -12054,8 +12056,8 @@ { if (data.debugText.HasValue()) { response.debugText = [[NSString alloc] initWithBytes:data.debugText.Value().data() - length:data.debugText.Value().size() - encoding:NSUTF8StringEncoding]; + length:data.debugText.Value().size() + encoding:NSUTF8StringEncoding]; } else { response.debugText = nil; } @@ -12080,8 +12082,8 @@ { if (data.debugText.HasValue()) { response.debugText = [[NSString alloc] initWithBytes:data.debugText.Value().data() - length:data.debugText.Value().size() - encoding:NSUTF8StringEncoding]; + length:data.debugText.Value().size() + encoding:NSUTF8StringEncoding]; } else { response.debugText = nil; } @@ -12121,7 +12123,7 @@ auto * response = [MTROperationalCredentialsClusterAttestationResponseParams new]; { response.attestationElements = [NSData dataWithBytes:data.attestationElements.data() - length:data.attestationElements.size()]; + length:data.attestationElements.size()]; } { response.signature = [NSData dataWithBytes:data.signature.data() length:data.signature.size()]; @@ -12148,7 +12150,7 @@ } { response.attestationSignature = [NSData dataWithBytes:data.attestationSignature.data() - length:data.attestationSignature.size()]; + length:data.attestationSignature.size()]; } DispatchSuccess(context, response); }; @@ -12170,8 +12172,8 @@ { if (data.debugText.HasValue()) { response.debugText = [[NSString alloc] initWithBytes:data.debugText.Value().data() - length:data.debugText.Value().size() - encoding:NSUTF8StringEncoding]; + length:data.debugText.Value().size() + encoding:NSUTF8StringEncoding]; } else { response.debugText = nil; } @@ -12192,7 +12194,7 @@ response.groupKeySet.epochKey0 = nil; } else { response.groupKeySet.epochKey0 = [NSData dataWithBytes:data.groupKeySet.epochKey0.Value().data() - length:data.groupKeySet.epochKey0.Value().size()]; + length:data.groupKeySet.epochKey0.Value().size()]; } if (data.groupKeySet.epochStartTime0.IsNull()) { response.groupKeySet.epochStartTime0 = nil; @@ -12203,7 +12205,7 @@ response.groupKeySet.epochKey1 = nil; } else { response.groupKeySet.epochKey1 = [NSData dataWithBytes:data.groupKeySet.epochKey1.Value().data() - length:data.groupKeySet.epochKey1.Value().size()]; + length:data.groupKeySet.epochKey1.Value().size()]; } if (data.groupKeySet.epochStartTime1.IsNull()) { response.groupKeySet.epochStartTime1 = nil; @@ -12214,7 +12216,7 @@ response.groupKeySet.epochKey2 = nil; } else { response.groupKeySet.epochKey2 = [NSData dataWithBytes:data.groupKeySet.epochKey2.Value().data() - length:data.groupKeySet.epochKey2.Value().size()]; + length:data.groupKeySet.epochKey2.Value().size()]; } if (data.groupKeySet.epochStartTime2.IsNull()) { response.groupKeySet.epochStartTime2 = nil; @@ -12230,7 +12232,7 @@ { auto * response = [MTRGroupKeyManagementClusterKeySetReadAllIndicesResponseParams new]; { - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = data.groupKeySetIDs.begin(); while (iter_0.Next()) { @@ -12377,8 +12379,8 @@ response.userName = nil; } else { response.userName = [[NSString alloc] initWithBytes:data.userName.Value().data() - length:data.userName.Value().size() - encoding:NSUTF8StringEncoding]; + length:data.userName.Value().size() + encoding:NSUTF8StringEncoding]; } } { @@ -12413,7 +12415,7 @@ if (data.credentials.IsNull()) { response.credentials = nil; } else { - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_1 = [NSMutableArray new]; auto iter_1 = data.credentials.Value().begin(); while (iter_1.Next()) { @@ -12533,7 +12535,7 @@ response.modeForSequence = [NSNumber numberWithUnsignedChar:data.modeForSequence.Raw()]; } { - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = data.transitions.begin(); while (iter_0.Next()) { @@ -12574,8 +12576,8 @@ { if (data.data.HasValue()) { response.data = [[NSString alloc] initWithBytes:data.data.Value().data() - length:data.data.Value().size() - encoding:NSUTF8StringEncoding]; + length:data.data.Value().size() + encoding:NSUTF8StringEncoding]; } else { response.data = nil; } @@ -12593,8 +12595,8 @@ { if (data.data.HasValue()) { response.data = [[NSString alloc] initWithBytes:data.data.Value().data() - length:data.data.Value().size() - encoding:NSUTF8StringEncoding]; + length:data.data.Value().size() + encoding:NSUTF8StringEncoding]; } else { response.data = nil; } @@ -12612,8 +12614,8 @@ { if (data.data.HasValue()) { response.data = [[NSString alloc] initWithBytes:data.data.Value().data() - length:data.data.Value().size() - encoding:NSUTF8StringEncoding]; + length:data.data.Value().size() + encoding:NSUTF8StringEncoding]; } else { response.data = nil; } @@ -12641,8 +12643,8 @@ { if (data.data.HasValue()) { response.data = [[NSString alloc] initWithBytes:data.data.Value().data() - length:data.data.Value().size() - encoding:NSUTF8StringEncoding]; + length:data.data.Value().size() + encoding:NSUTF8StringEncoding]; } else { response.data = nil; } @@ -12669,8 +12671,8 @@ auto * response = [MTRAccountLoginClusterGetSetupPINResponseParams new]; { response.setupPIN = [[NSString alloc] initWithBytes:data.setupPIN.data() - length:data.setupPIN.size() - encoding:NSUTF8StringEncoding]; + length:data.setupPIN.size() + encoding:NSUTF8StringEncoding]; } DispatchSuccess(context, response); }; @@ -12710,7 +12712,7 @@ { auto * response = [MTRTestClusterClusterTestStructArrayArgumentResponseParams new]; { - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = data.arg1.begin(); while (iter_0.Next()) { @@ -12725,12 +12727,12 @@ newElement_0.c.c = [NSNumber numberWithUnsignedChar:chip::to_underlying(entry_0.c.c)]; newElement_0.c.d = [NSData dataWithBytes:entry_0.c.d.data() length:entry_0.c.d.size()]; newElement_0.c.e = [[NSString alloc] initWithBytes:entry_0.c.e.data() - length:entry_0.c.e.size() - encoding:NSUTF8StringEncoding]; + length:entry_0.c.e.size() + encoding:NSUTF8StringEncoding]; newElement_0.c.f = [NSNumber numberWithUnsignedChar:entry_0.c.f.Raw()]; newElement_0.c.g = [NSNumber numberWithFloat:entry_0.c.g]; newElement_0.c.h = [NSNumber numberWithDouble:entry_0.c.h]; - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_2 = [NSMutableArray new]; auto iter_2 = entry_0.d.begin(); while (iter_2.Next()) { @@ -12742,8 +12744,8 @@ newElement_2.c = [NSNumber numberWithUnsignedChar:chip::to_underlying(entry_2.c)]; newElement_2.d = [NSData dataWithBytes:entry_2.d.data() length:entry_2.d.size()]; newElement_2.e = [[NSString alloc] initWithBytes:entry_2.e.data() - length:entry_2.e.size() - encoding:NSUTF8StringEncoding]; + length:entry_2.e.size() + encoding:NSUTF8StringEncoding]; newElement_2.f = [NSNumber numberWithUnsignedChar:entry_2.f.Raw()]; newElement_2.g = [NSNumber numberWithFloat:entry_2.g]; newElement_2.h = [NSNumber numberWithDouble:entry_2.h]; @@ -12756,7 +12758,7 @@ } newElement_0.d = array_2; } - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_2 = [NSMutableArray new]; auto iter_2 = entry_0.e.begin(); while (iter_2.Next()) { @@ -12772,7 +12774,7 @@ } newElement_0.e = array_2; } - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_2 = [NSMutableArray new]; auto iter_2 = entry_0.f.begin(); while (iter_2.Next()) { @@ -12788,7 +12790,7 @@ } newElement_0.f = array_2; } - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_2 = [NSMutableArray new]; auto iter_2 = entry_0.g.begin(); while (iter_2.Next()) { @@ -12815,7 +12817,7 @@ } } { - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = data.arg2.begin(); while (iter_0.Next()) { @@ -12827,8 +12829,8 @@ newElement_0.c = [NSNumber numberWithUnsignedChar:chip::to_underlying(entry_0.c)]; newElement_0.d = [NSData dataWithBytes:entry_0.d.data() length:entry_0.d.size()]; newElement_0.e = [[NSString alloc] initWithBytes:entry_0.e.data() - length:entry_0.e.size() - encoding:NSUTF8StringEncoding]; + length:entry_0.e.size() + encoding:NSUTF8StringEncoding]; newElement_0.f = [NSNumber numberWithUnsignedChar:entry_0.f.Raw()]; newElement_0.g = [NSNumber numberWithFloat:entry_0.g]; newElement_0.h = [NSNumber numberWithDouble:entry_0.h]; @@ -12843,7 +12845,7 @@ } } { - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = data.arg3.begin(); while (iter_0.Next()) { @@ -12861,7 +12863,7 @@ } } { - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = data.arg4.begin(); while (iter_0.Next()) { @@ -12892,7 +12894,7 @@ { auto * response = [MTRTestClusterClusterTestListInt8UReverseResponseParams new]; { - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; auto iter_0 = data.arg1.begin(); while (iter_0.Next()) { @@ -13007,8 +13009,8 @@ { if (data.nullableStringValue.HasValue()) { response.nullableStringValue = [[NSString alloc] initWithBytes:data.nullableStringValue.Value().data() - length:data.nullableStringValue.Value().size() - encoding:NSUTF8StringEncoding]; + length:data.nullableStringValue.Value().size() + encoding:NSUTF8StringEncoding]; } else { response.nullableStringValue = nil; } @@ -13019,8 +13021,8 @@ { if (data.optionalStringValue.HasValue()) { response.optionalStringValue = [[NSString alloc] initWithBytes:data.optionalStringValue.Value().data() - length:data.optionalStringValue.Value().size() - encoding:NSUTF8StringEncoding]; + length:data.optionalStringValue.Value().size() + encoding:NSUTF8StringEncoding]; } else { response.optionalStringValue = nil; } @@ -13038,8 +13040,8 @@ { if (data.nullableOptionalStringValue.HasValue()) { response.nullableOptionalStringValue = [[NSString alloc] initWithBytes:data.nullableOptionalStringValue.Value().data() - length:data.nullableOptionalStringValue.Value().size() - encoding:NSUTF8StringEncoding]; + length:data.nullableOptionalStringValue.Value().size() + encoding:NSUTF8StringEncoding]; } else { response.nullableOptionalStringValue = nil; } @@ -13055,10 +13057,10 @@ response.nullableStructValue.c = [NSNumber numberWithUnsignedChar:chip::to_underlying(data.nullableStructValue.Value().c)]; response.nullableStructValue.d = [NSData dataWithBytes:data.nullableStructValue.Value().d.data() - length:data.nullableStructValue.Value().d.size()]; + length:data.nullableStructValue.Value().d.size()]; response.nullableStructValue.e = [[NSString alloc] initWithBytes:data.nullableStructValue.Value().e.data() - length:data.nullableStructValue.Value().e.size() - encoding:NSUTF8StringEncoding]; + length:data.nullableStructValue.Value().e.size() + encoding:NSUTF8StringEncoding]; response.nullableStructValue.f = [NSNumber numberWithUnsignedChar:data.nullableStructValue.Value().f.Raw()]; response.nullableStructValue.g = [NSNumber numberWithFloat:data.nullableStructValue.Value().g]; response.nullableStructValue.h = [NSNumber numberWithDouble:data.nullableStructValue.Value().h]; @@ -13077,10 +13079,10 @@ response.optionalStructValue.c = [NSNumber numberWithUnsignedChar:chip::to_underlying(data.optionalStructValue.Value().c)]; response.optionalStructValue.d = [NSData dataWithBytes:data.optionalStructValue.Value().d.data() - length:data.optionalStructValue.Value().d.size()]; + length:data.optionalStructValue.Value().d.size()]; response.optionalStructValue.e = [[NSString alloc] initWithBytes:data.optionalStructValue.Value().e.data() - length:data.optionalStructValue.Value().e.size() - encoding:NSUTF8StringEncoding]; + length:data.optionalStructValue.Value().e.size() + encoding:NSUTF8StringEncoding]; response.optionalStructValue.f = [NSNumber numberWithUnsignedChar:data.optionalStructValue.Value().f.Raw()]; response.optionalStructValue.g = [NSNumber numberWithFloat:data.optionalStructValue.Value().g]; response.optionalStructValue.h = [NSNumber numberWithDouble:data.optionalStructValue.Value().h]; @@ -13106,11 +13108,11 @@ response.nullableOptionalStructValue.c = [NSNumber numberWithUnsignedChar:chip::to_underlying(data.nullableOptionalStructValue.Value().c)]; response.nullableOptionalStructValue.d = [NSData dataWithBytes:data.nullableOptionalStructValue.Value().d.data() - length:data.nullableOptionalStructValue.Value().d.size()]; + length:data.nullableOptionalStructValue.Value().d.size()]; response.nullableOptionalStructValue.e = [[NSString alloc] initWithBytes:data.nullableOptionalStructValue.Value().e.data() - length:data.nullableOptionalStructValue.Value().e.size() - encoding:NSUTF8StringEncoding]; + length:data.nullableOptionalStructValue.Value().e.size() + encoding:NSUTF8StringEncoding]; response.nullableOptionalStructValue.f = [NSNumber numberWithUnsignedChar:data.nullableOptionalStructValue.Value().f.Raw()]; response.nullableOptionalStructValue.g = [NSNumber numberWithFloat:data.nullableOptionalStructValue.Value().g]; @@ -13124,7 +13126,7 @@ } { if (data.nullableListValue.HasValue()) { - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_1 = [NSMutableArray new]; auto iter_1 = data.nullableListValue.Value().begin(); while (iter_1.Next()) { @@ -13149,7 +13151,7 @@ } { if (data.optionalListValue.HasValue()) { - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_1 = [NSMutableArray new]; auto iter_1 = data.optionalListValue.Value().begin(); while (iter_1.Next()) { @@ -13181,7 +13183,7 @@ } { if (data.nullableOptionalListValue.HasValue()) { - { // Scope for our temporary variables + { // Scope for our temporary variables auto * array_1 = [NSMutableArray new]; auto iter_1 = data.nullableOptionalListValue.Value().begin(); while (iter_1.Next()) { @@ -13225,8 +13227,8 @@ response.arg1.c = [NSNumber numberWithUnsignedChar:chip::to_underlying(data.arg1.c)]; response.arg1.d = [NSData dataWithBytes:data.arg1.d.data() length:data.arg1.d.size()]; response.arg1.e = [[NSString alloc] initWithBytes:data.arg1.e.data() - length:data.arg1.e.size() - encoding:NSUTF8StringEncoding]; + length:data.arg1.e.size() + encoding:NSUTF8StringEncoding]; response.arg1.f = [NSNumber numberWithUnsignedChar:data.arg1.f.Raw()]; response.arg1.g = [NSNumber numberWithFloat:data.arg1.g]; response.arg1.h = [NSNumber numberWithDouble:data.arg1.h]; @@ -14275,7 +14277,7 @@ } void MTRNullableOtaSoftwareUpdateProviderClusterOTAApplyUpdateActionAttributeCallbackBridge::OnSuccessFn(void * context, - const chip::app::DataModel::Nullable & value) + const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; if (value.IsNull()) { @@ -14290,7 +14292,7 @@ void * context) { auto * self = static_cast( - context); + context); if (!self->mQueue) { return; } @@ -14330,7 +14332,7 @@ } void MTRNullableOtaSoftwareUpdateProviderClusterOTADownloadProtocolAttributeCallbackBridge::OnSuccessFn(void * context, - const chip::app::DataModel::Nullable & value) + const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; if (value.IsNull()) { @@ -14440,7 +14442,7 @@ } void MTRNullableOtaSoftwareUpdateRequestorClusterOTAAnnouncementReasonAttributeCallbackBridge::OnSuccessFn(void * context, - const chip::app::DataModel::Nullable & value) + const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; if (value.IsNull()) { @@ -14452,11 +14454,11 @@ }; void MTRNullableOtaSoftwareUpdateRequestorClusterOTAAnnouncementReasonAttributeCallbackSubscriptionBridge:: - OnSubscriptionEstablished(void * context) +OnSubscriptionEstablished(void * context) { auto * self = static_cast( - context); + context); if (!self->mQueue) { return; } @@ -14497,7 +14499,7 @@ } void MTRNullableOtaSoftwareUpdateRequestorClusterOTAChangeReasonEnumAttributeCallbackBridge::OnSuccessFn(void * context, - const chip::app::DataModel::Nullable & value) + const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; if (value.IsNull()) { @@ -14512,7 +14514,7 @@ void * context) { auto * self = static_cast( - context); + context); if (!self->mQueue) { return; } @@ -14552,7 +14554,7 @@ } void MTRNullableOtaSoftwareUpdateRequestorClusterOTAUpdateStateEnumAttributeCallbackBridge::OnSuccessFn(void * context, - const chip::app::DataModel::Nullable & value) + const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; if (value.IsNull()) { @@ -15291,7 +15293,7 @@ } void MTRNullableNetworkCommissioningClusterNetworkCommissioningStatusAttributeCallbackBridge::OnSuccessFn(void * context, - const chip::app::DataModel::Nullable & value) + const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; if (value.IsNull()) { @@ -15307,7 +15309,7 @@ { auto * self = static_cast( - context); + context); if (!self->mQueue) { return; } @@ -15927,7 +15929,7 @@ } void MTRNullableThreadNetworkDiagnosticsClusterThreadConnectionStatusAttributeCallbackBridge::OnSuccessFn(void * context, - const chip::app::DataModel::Nullable & value) + const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; if (value.IsNull()) { @@ -15943,7 +15945,7 @@ { auto * self = static_cast( - context); + context); if (!self->mQueue) { return; } @@ -15984,7 +15986,7 @@ } void MTRNullableWiFiNetworkDiagnosticsClusterAssociationFailureCauseAttributeCallbackBridge::OnSuccessFn(void * context, - const chip::app::DataModel::Nullable & value) + const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; if (value.IsNull()) { @@ -15999,7 +16001,7 @@ void * context) { auto * self = static_cast( - context); + context); if (!self->mQueue) { return; } @@ -16256,7 +16258,7 @@ } void MTRNullableAdministratorCommissioningClusterCommissioningWindowStatusAttributeCallbackBridge::OnSuccessFn(void * context, - const chip::app::DataModel::Nullable & value) + const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; if (value.IsNull()) { @@ -16268,11 +16270,11 @@ }; void MTRNullableAdministratorCommissioningClusterCommissioningWindowStatusAttributeCallbackSubscriptionBridge:: - OnSubscriptionEstablished(void * context) +OnSubscriptionEstablished(void * context) { auto * self = static_cast( - context); + context); if (!self->mQueue) { return; } @@ -16365,7 +16367,7 @@ } void MTRNullableOperationalCredentialsClusterOperationalCertStatusAttributeCallbackBridge::OnSuccessFn(void * context, - const chip::app::DataModel::Nullable & value) + const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; if (value.IsNull()) { @@ -17676,7 +17678,7 @@ } void MTRNullablePumpConfigurationAndControlClusterPumpOperationModeAttributeCallbackBridge::OnSuccessFn(void * context, - const chip::app::DataModel::Nullable & value) + const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; if (value.IsNull()) { @@ -19146,7 +19148,7 @@ } void MTRNullableApplicationLauncherClusterApplicationLauncherStatusEnumAttributeCallbackBridge::OnSuccessFn(void * context, - const chip::app::DataModel::Nullable & value) + const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; if (value.IsNull()) { @@ -19158,11 +19160,11 @@ }; void MTRNullableApplicationLauncherClusterApplicationLauncherStatusEnumAttributeCallbackSubscriptionBridge:: - OnSubscriptionEstablished(void * context) +OnSubscriptionEstablished(void * context) { auto * self = static_cast( - context); + context); if (!self->mQueue) { return; } @@ -19362,7 +19364,7 @@ } void MTRNullableMessagingClusterMessagingControlEnhancedConfirmationAttributeCallbackBridge::OnSuccessFn(void * context, - const chip::app::DataModel::Nullable & value) + const chip::app::DataModel::Nullable & value) { NSNumber * _Nullable objCValue; if (value.IsNull()) { @@ -19377,7 +19379,7 @@ void * context) { auto * self = static_cast( - context); + context); if (!self->mQueue) { return; }