Lines Matching refs:message

78     // Null message type.
80 nonnullable_handle_message_layout message = {};
81 message.inline_struct.handle = FIDL_HANDLE_PRESENT;
83 auto status = fidl_decode(nullptr, &message, sizeof(nonnullable_handle_message_layout),
89 // Null message.
99 // Null handles, for a message that has a handle.
101 nonnullable_handle_message_layout message = {};
102 message.inline_struct.handle = FIDL_HANDLE_PRESENT;
104 auto status = fidl_decode(&nonnullable_handle_message_type, &message,
112 nonnullable_handle_message_layout message = {};
113 message.inline_struct.handle = FIDL_HANDLE_PRESENT;
115 auto status = fidl_decode(&nonnullable_handle_message_type, &message,
129 nonnullable_handle_message_layout message = {};
130 message.inline_struct.handle = FIDL_HANDLE_PRESENT;
131 auto status = fidl_decode(&nonnullable_handle_message_type, &message,
143 nonnullable_handle_message_layout message = {};
144 message.inline_struct.handle = FIDL_HANDLE_PRESENT;
151 auto status = fidl_decode(&nonnullable_handle_message_type, &message, sizeof(message), handles,
156 EXPECT_EQ(message.inline_struct.handle, dummy_handle_0);
164 nonnullable_handle_message_layout message = {};
165 message.inline_struct.handle = FIDL_HANDLE_PRESENT;
173 auto status = fidl_decode(&nonnullable_handle_message_type, &message, sizeof(message), handles,
178 EXPECT_EQ(message.inline_struct.handle, dummy_handle_0);
186 // Test a short, unaligned version of nonnullable message
187 // handle. All fidl message objects should be 8 byte aligned.
196 unaligned_nonnullable_handle_message_layout message = {};
197 message.inline_struct.handle = FIDL_HANDLE_PRESENT;
205 auto status = fidl_decode(&nonnullable_handle_message_type, &message, sizeof(message), handles,
217 multiple_nonnullable_handles_message_layout message = {};
218 message.inline_struct.handle_0 = FIDL_HANDLE_PRESENT;
219 message.inline_struct.handle_1 = FIDL_HANDLE_PRESENT;
220 message.inline_struct.handle_2 = FIDL_HANDLE_PRESENT;
229 auto status = fidl_decode(&multiple_nonnullable_handles_message_type, &message, sizeof(message),
234 EXPECT_EQ(message.inline_struct.data_0, 0u);
235 EXPECT_EQ(message.inline_struct.handle_0, dummy_handle_0);
236 EXPECT_EQ(message.inline_struct.data_1, 0u);
237 EXPECT_EQ(message.inline_struct.handle_1, dummy_handle_1);
238 EXPECT_EQ(message.inline_struct.handle_2, dummy_handle_2);
239 EXPECT_EQ(message.inline_struct.data_2, 0u);
247 nullable_handle_message_layout message = {};
248 message.inline_struct.handle = FIDL_HANDLE_ABSENT;
252 fidl_decode(&nullable_handle_message_type, &message, sizeof(message), nullptr, 0, &error);
256 EXPECT_EQ(message.inline_struct.handle, ZX_HANDLE_INVALID);
264 multiple_nullable_handles_message_layout message = {};
265 message.inline_struct.handle_0 = FIDL_HANDLE_ABSENT;
266 message.inline_struct.handle_1 = FIDL_HANDLE_ABSENT;
267 message.inline_struct.handle_2 = FIDL_HANDLE_ABSENT;
270 auto status = fidl_decode(&multiple_nullable_handles_message_type, &message, sizeof(message),
275 EXPECT_EQ(message.inline_struct.data_0, 0u);
276 EXPECT_EQ(message.inline_struct.handle_0, ZX_HANDLE_INVALID);
277 EXPECT_EQ(message.inline_struct.data_1, 0u);
278 EXPECT_EQ(message.inline_struct.handle_1, ZX_HANDLE_INVALID);
279 EXPECT_EQ(message.inline_struct.handle_2, ZX_HANDLE_INVALID);
280 EXPECT_EQ(message.inline_struct.data_2, 0u);
288 array_of_nonnullable_handles_message_layout message = {};
289 message.inline_struct.handles[0] = FIDL_HANDLE_PRESENT;
290 message.inline_struct.handles[1] = FIDL_HANDLE_PRESENT;
291 message.inline_struct.handles[2] = FIDL_HANDLE_PRESENT;
292 message.inline_struct.handles[3] = FIDL_HANDLE_PRESENT;
302 auto status = fidl_decode(&array_of_nonnullable_handles_message_type, &message, sizeof(message),
307 EXPECT_EQ(message.inline_struct.handles[0], dummy_handle_0);
308 EXPECT_EQ(message.inline_struct.handles[1], dummy_handle_1);
309 EXPECT_EQ(message.inline_struct.handles[2], dummy_handle_2);
310 EXPECT_EQ(message.inline_struct.handles[3], dummy_handle_3);
318 array_of_nonnullable_handles_message_layout message = {};
324 message.inline_struct.handles[0] = FIDL_HANDLE_PRESENT;
325 message.inline_struct.handles[1] = FIDL_HANDLE_PRESENT;
326 message.inline_struct.handles[2] = FIDL_HANDLE_PRESENT;
327 message.inline_struct.handles[3] = FIDL_HANDLE_PRESENT;
334 auto status = fidl_decode(&array_of_nonnullable_handles_message_type, &message, sizeof(message),
371 array_of_nonnullable_handles_message_layout message = {};
372 message.inline_struct.handles[0] = FIDL_HANDLE_PRESENT;
373 message.inline_struct.handles[1] = FIDL_HANDLE_PRESENT;
374 message.inline_struct.handles[2] = FIDL_HANDLE_PRESENT;
375 message.inline_struct.handles[3] = FIDL_HANDLE_ABSENT;
385 auto status = fidl_decode(&array_of_nonnullable_handles_message_type, &message, sizeof(message),
397 array_of_nullable_handles_message_layout message = {};
398 message.inline_struct.handles[0] = FIDL_HANDLE_PRESENT;
399 message.inline_struct.handles[1] = FIDL_HANDLE_ABSENT;
400 message.inline_struct.handles[2] = FIDL_HANDLE_PRESENT;
401 message.inline_struct.handles[3] = FIDL_HANDLE_ABSENT;
402 message.inline_struct.handles[4] = FIDL_HANDLE_PRESENT;
411 auto status = fidl_decode(&array_of_nullable_handles_message_type, &message, sizeof(message),
416 EXPECT_EQ(message.inline_struct.handles[0], dummy_handle_0);
417 EXPECT_EQ(message.inline_struct.handles[1], ZX_HANDLE_INVALID);
418 EXPECT_EQ(message.inline_struct.handles[2], dummy_handle_1);
419 EXPECT_EQ(message.inline_struct.handles[3], ZX_HANDLE_INVALID);
420 EXPECT_EQ(message.inline_struct.handles[4], dummy_handle_2);
428 array_of_nullable_handles_message_layout message = {};
429 message.inline_struct.handles[0] = FIDL_HANDLE_PRESENT;
430 message.inline_struct.handles[1] = FIDL_HANDLE_ABSENT;
431 message.inline_struct.handles[2] = FIDL_HANDLE_PRESENT;
432 message.inline_struct.handles[3] = FIDL_HANDLE_ABSENT;
433 message.inline_struct.handles[4] = FIDL_HANDLE_PRESENT;
441 auto status = fidl_decode(&array_of_nullable_handles_message_type, &message, sizeof(message),
453 array_of_array_of_nonnullable_handles_message_layout message = {};
454 message.inline_struct.handles[0][0] = FIDL_HANDLE_PRESENT;
455 message.inline_struct.handles[0][1] = FIDL_HANDLE_PRESENT;
456 message.inline_struct.handles[0][2] = FIDL_HANDLE_PRESENT;
457 message.inline_struct.handles[0][3] = FIDL_HANDLE_PRESENT;
458 message.inline_struct.handles[1][0] = FIDL_HANDLE_PRESENT;
459 message.inline_struct.handles[1][1] = FIDL_HANDLE_PRESENT;
460 message.inline_struct.handles[1][2] = FIDL_HANDLE_PRESENT;
461 message.inline_struct.handles[1][3] = FIDL_HANDLE_PRESENT;
462 message.inline_struct.handles[2][0] = FIDL_HANDLE_PRESENT;
463 message.inline_struct.handles[2][1] = FIDL_HANDLE_PRESENT;
464 message.inline_struct.handles[2][2] = FIDL_HANDLE_PRESENT;
465 message.inline_struct.handles[2][3] = FIDL_HANDLE_PRESENT;
474 auto status = fidl_decode(&array_of_array_of_nonnullable_handles_message_type, &message,
475 sizeof(message), handles, ArrayCount(handles), &error);
479 EXPECT_EQ(message.inline_struct.handles[0][0], dummy_handle_0);
480 EXPECT_EQ(message.inline_struct.handles[0][1], dummy_handle_1);
481 EXPECT_EQ(message.inline_struct.handles[0][2], dummy_handle_2);
482 EXPECT_EQ(message.inline_struct.handles[0][3], dummy_handle_3);
483 EXPECT_EQ(message.inline_struct.handles[1][0], dummy_handle_4);
484 EXPECT_EQ(message.inline_struct.handles[1][1], dummy_handle_5);
485 EXPECT_EQ(message.inline_struct.handles[1][2], dummy_handle_6);
486 EXPECT_EQ(message.inline_struct.handles[1][3], dummy_handle_7);
487 EXPECT_EQ(message.inline_struct.handles[2][0], dummy_handle_8);
488 EXPECT_EQ(message.inline_struct.handles[2][1], dummy_handle_9);
489 EXPECT_EQ(message.inline_struct.handles[2][2], dummy_handle_10);
490 EXPECT_EQ(message.inline_struct.handles[2][3], dummy_handle_11);
498 out_of_line_array_of_nonnullable_handles_message_layout message = {};
499 message.inline_struct.maybe_array =
501 message.data.handles[0] = FIDL_HANDLE_PRESENT;
502 message.data.handles[1] = FIDL_HANDLE_PRESENT;
503 message.data.handles[2] = FIDL_HANDLE_PRESENT;
504 message.data.handles[3] = FIDL_HANDLE_PRESENT;
514 auto status = fidl_decode(&out_of_line_array_of_nonnullable_handles_message_type, &message,
515 sizeof(message), handles, ArrayCount(handles), &error);
520 auto array_ptr = message.inline_struct.maybe_array;
533 unbounded_nonnullable_string_message_layout message = {};
534 message.inline_struct.string = fidl_string_t{6, reinterpret_cast<char*>(FIDL_ALLOC_PRESENT)};
535 memcpy(message.data, "hello!", 6);
538 auto status = fidl_decode(&unbounded_nonnullable_string_message_type, &message, sizeof(message),
543 EXPECT_EQ(message.inline_struct.string.size, 6);
544 EXPECT_EQ(message.inline_struct.string.data[0], 'h');
545 EXPECT_EQ(message.inline_struct.string.data[1], 'e');
546 EXPECT_EQ(message.inline_struct.string.data[2], 'l');
547 EXPECT_EQ(message.inline_struct.string.data[3], 'l');
548 EXPECT_EQ(message.inline_struct.string.data[4], 'o');
549 EXPECT_EQ(message.inline_struct.string.data[5], '!');
557 unbounded_nullable_string_message_layout message = {};
558 message.inline_struct.string = fidl_string_t{6, reinterpret_cast<char*>(FIDL_ALLOC_PRESENT)};
559 memcpy(message.data, "hello!", 6);
562 auto status = fidl_decode(&unbounded_nullable_string_message_type, &message, sizeof(message),
567 EXPECT_EQ(message.inline_struct.string.size, 6);
568 EXPECT_EQ(message.inline_struct.string.data[0], 'h');
569 EXPECT_EQ(message.inline_struct.string.data[1], 'e');
570 EXPECT_EQ(message.inline_struct.string.data[2], 'l');
571 EXPECT_EQ(message.inline_struct.string.data[3], 'l');
572 EXPECT_EQ(message.inline_struct.string.data[4], 'o');
573 EXPECT_EQ(message.inline_struct.string.data[5], '!');
583 multiple_nullable_strings_message_layout message = {};
584 message.inline_struct.string = fidl_string_t{6, reinterpret_cast<char*>(FIDL_ALLOC_PRESENT)};
585 message.inline_struct.string2 = fidl_string_t{8, reinterpret_cast<char*>(FIDL_ALLOC_PRESENT)};
586 memcpy(message.data, "hello ", 6);
587 memcpy(message.data2, "world!!! ", 8);
590 auto status = fidl_decode(&multiple_nullable_strings_message_type, &message, sizeof(message),
595 EXPECT_EQ(message.inline_struct.string.size, 6);
596 EXPECT_EQ(message.inline_struct.string.data[0], 'h');
597 EXPECT_EQ(message.inline_struct.string.data[1], 'e');
598 EXPECT_EQ(message.inline_struct.string.data[2], 'l');
599 EXPECT_EQ(message.inline_struct.string.data[3], 'l');
600 EXPECT_EQ(message.inline_struct.string.data[4], 'o');
601 EXPECT_EQ(message.inline_struct.string.data[5], ' ');
602 EXPECT_EQ(message.inline_struct.string2.size, 8);
603 EXPECT_EQ(message.inline_struct.string2.data[0], 'w');
604 EXPECT_EQ(message.inline_struct.string2.data[1], 'o');
605 EXPECT_EQ(message.inline_struct.string2.data[2], 'r');
606 EXPECT_EQ(message.inline_struct.string2.data[3], 'l');
607 EXPECT_EQ(message.inline_struct.string2.data[4], 'd');
608 EXPECT_EQ(message.inline_struct.string2.data[5], '!');
609 EXPECT_EQ(message.inline_struct.string2.data[6], '!');
610 EXPECT_EQ(message.inline_struct.string2.data[7], '!');
611 EXPECT_EQ(message.inline_struct.string2.data[7], '!');
619 unbounded_nonnullable_string_message_layout message = {};
620 message.inline_struct.string = fidl_string_t{6, reinterpret_cast<char*>(FIDL_ALLOC_ABSENT)};
623 auto status = fidl_decode(&unbounded_nonnullable_string_message_type, &message, sizeof(message),
635 unbounded_nullable_string_message_layout message = {};
636 message.inline_struct.string = fidl_string_t{0, reinterpret_cast<char*>(FIDL_ALLOC_ABSENT)};
639 auto status = fidl_decode(&unbounded_nullable_string_message_type, &message,
640 sizeof(message.inline_struct), nullptr, 0, &error);
651 bounded_32_nonnullable_string_message_layout message = {};
652 message.inline_struct.string = fidl_string_t{6, reinterpret_cast<char*>(FIDL_ALLOC_PRESENT)};
653 memcpy(message.data, "hello!", 6);
656 auto status = fidl_decode(&bounded_32_nonnullable_string_message_type, &message,
657 sizeof(message), nullptr, 0, &error);
661 EXPECT_EQ(message.inline_struct.string.size, 6);
662 EXPECT_EQ(message.inline_struct.string.data[0], 'h');
663 EXPECT_EQ(message.inline_struct.string.data[1], 'e');
664 EXPECT_EQ(message.inline_struct.string.data[2], 'l');
665 EXPECT_EQ(message.inline_struct.string.data[3], 'l');
666 EXPECT_EQ(message.inline_struct.string.data[4], 'o');
667 EXPECT_EQ(message.inline_struct.string.data[5], '!');
675 bounded_32_nullable_string_message_layout message = {};
676 message.inline_struct.string = fidl_string_t{6, reinterpret_cast<char*>(FIDL_ALLOC_PRESENT)};
677 memcpy(message.data, "hello!", 6);
680 auto status = fidl_decode(&bounded_32_nullable_string_message_type, &message, sizeof(message),
685 EXPECT_EQ(message.inline_struct.string.size, 6);
686 EXPECT_EQ(message.inline_struct.string.data[0], 'h');
687 EXPECT_EQ(message.inline_struct.string.data[1], 'e');
688 EXPECT_EQ(message.inline_struct.string.data[2], 'l');
689 EXPECT_EQ(message.inline_struct.string.data[3], 'l');
690 EXPECT_EQ(message.inline_struct.string.data[4], 'o');
691 EXPECT_EQ(message.inline_struct.string.data[5], '!');
699 bounded_32_nonnullable_string_message_layout message = {};
700 message.inline_struct.string = fidl_string_t{6, reinterpret_cast<char*>(FIDL_ALLOC_ABSENT)};
703 auto status = fidl_decode(&bounded_32_nonnullable_string_message_type, &message,
704 sizeof(message), nullptr, 0, &error);
715 bounded_32_nullable_string_message_layout message = {};
716 message.inline_struct.string = fidl_string_t{0, reinterpret_cast<char*>(FIDL_ALLOC_ABSENT)};
719 auto status = fidl_decode(&bounded_32_nullable_string_message_type, &message,
720 sizeof(message.inline_struct), nullptr, 0, &error);
731 multiple_short_nonnullable_strings_message_layout message = {};
732 message.inline_struct.string = fidl_string_t{6, reinterpret_cast<char*>(FIDL_ALLOC_PRESENT)};
733 message.inline_struct.string2 = fidl_string_t{8, reinterpret_cast<char*>(FIDL_ALLOC_PRESENT)};
734 memcpy(message.data, "hello ", 6);
735 memcpy(message.data2, "world! ", 6);
738 auto status = fidl_decode(&multiple_short_nonnullable_strings_message_type, &message,
739 sizeof(message), nullptr, 0, &error);
750 multiple_short_nullable_strings_message_layout message = {};
751 message.inline_struct.string = fidl_string_t{6, reinterpret_cast<char*>(FIDL_ALLOC_PRESENT)};
752 message.inline_struct.string2 = fidl_string_t{8, reinterpret_cast<char*>(FIDL_ALLOC_PRESENT)};
753 memcpy(message.data, "hello ", 6);
754 memcpy(message.data2, "world! ", 6);
757 auto status = fidl_decode(&multiple_short_nullable_strings_message_type, &message,
758 sizeof(message), nullptr, 0, &error);
769 unbounded_nonnullable_vector_of_uint32_message_layout message = {};
771 // We want 16 because it happens to be the actual size of the vector data in the message,
773 // "didn't use all the bytes in the message" errors.
774 message.inline_struct.vector = fidl_vector_t{
778 auto status = fidl_decode(&unbounded_nonnullable_vector_of_uint32_message_type, &message,
779 sizeof(message), nullptr, 0, &error);
786 auto message_uint32 = reinterpret_cast<zx_handle_t*>(message.inline_struct.vector.data);
795 unbounded_nonnullable_vector_of_handles_message_layout message = {};
796 message.inline_struct.vector = fidl_vector_t{4, reinterpret_cast<void*>(FIDL_ALLOC_PRESENT)};
797 message.handles[0] = FIDL_HANDLE_PRESENT;
798 message.handles[1] = FIDL_HANDLE_PRESENT;
799 message.handles[2] = FIDL_HANDLE_PRESENT;
800 message.handles[3] = FIDL_HANDLE_PRESENT;
810 auto status = fidl_decode(&unbounded_nonnullable_vector_of_handles_message_type, &message,
811 sizeof(message), handles, ArrayCount(handles), &error);
816 auto message_handles = reinterpret_cast<zx_handle_t*>(message.inline_struct.vector.data);
828 unbounded_nullable_vector_of_handles_message_layout message = {};
829 message.inline_struct.vector = fidl_vector_t{4, reinterpret_cast<void*>(FIDL_ALLOC_PRESENT)};
830 message.handles[0] = FIDL_HANDLE_PRESENT;
831 message.handles[1] = FIDL_HANDLE_PRESENT;
832 message.handles[2] = FIDL_HANDLE_PRESENT;
833 message.handles[3] = FIDL_HANDLE_PRESENT;
843 auto status = fidl_decode(&unbounded_nullable_vector_of_handles_message_type, &message,
844 sizeof(message), handles, ArrayCount(handles), &error);
849 auto message_handles = reinterpret_cast<zx_handle_t*>(message.inline_struct.vector.data);
861 unbounded_nonnullable_vector_of_handles_message_layout message = {};
862 message.inline_struct.vector = fidl_vector_t{4, reinterpret_cast<void*>(FIDL_ALLOC_ABSENT)};
872 auto status = fidl_decode(&unbounded_nonnullable_vector_of_handles_message_type, &message,
873 sizeof(message), handles, ArrayCount(handles), &error);
884 unbounded_nullable_vector_of_handles_message_layout message = {};
885 message.inline_struct.vector = fidl_vector_t{0, reinterpret_cast<void*>(FIDL_ALLOC_ABSENT)};
888 auto status = fidl_decode(&unbounded_nullable_vector_of_handles_message_type, &message,
889 sizeof(message.inline_struct), nullptr, 0u, &error);
894 auto message_handles = reinterpret_cast<zx_handle_t*>(message.inline_struct.vector.data);
903 bounded_32_nonnullable_vector_of_handles_message_layout message = {};
904 message.inline_struct.vector = fidl_vector_t{4, reinterpret_cast<void*>(FIDL_ALLOC_PRESENT)};
905 message.handles[0] = FIDL_HANDLE_PRESENT;
906 message.handles[1] = FIDL_HANDLE_PRESENT;
907 message.handles[2] = FIDL_HANDLE_PRESENT;
908 message.handles[3] = FIDL_HANDLE_PRESENT;
918 auto status = fidl_decode(&bounded_32_nonnullable_vector_of_handles_message_type, &message,
919 sizeof(message), handles, ArrayCount(handles), &error);
924 auto message_handles = reinterpret_cast<zx_handle_t*>(message.inline_struct.vector.data);
936 bounded_32_nullable_vector_of_handles_message_layout message = {};
937 message.inline_struct.vector = fidl_vector_t{4, reinterpret_cast<void*>(FIDL_ALLOC_PRESENT)};
938 message.handles[0] = FIDL_HANDLE_PRESENT;
939 message.handles[1] = FIDL_HANDLE_PRESENT;
940 message.handles[2] = FIDL_HANDLE_PRESENT;
941 message.handles[3] = FIDL_HANDLE_PRESENT;
951 auto status = fidl_decode(&bounded_32_nullable_vector_of_handles_message_type, &message,
952 sizeof(message), handles, ArrayCount(handles), &error);
957 auto message_handles = reinterpret_cast<zx_handle_t*>(message.inline_struct.vector.data);
969 bounded_32_nonnullable_vector_of_handles_message_layout message = {};
970 message.inline_struct.vector = fidl_vector_t{4, reinterpret_cast<void*>(FIDL_ALLOC_ABSENT)};
973 auto status = fidl_decode(&bounded_32_nonnullable_vector_of_handles_message_type, &message,
974 sizeof(message.inline_struct), nullptr, 0u, &error);
979 auto message_handles = reinterpret_cast<zx_handle_t*>(message.inline_struct.vector.data);
988 bounded_32_nullable_vector_of_handles_message_layout message = {};
989 message.inline_struct.vector = fidl_vector_t{0, reinterpret_cast<void*>(FIDL_ALLOC_ABSENT)};
992 auto status = fidl_decode(&bounded_32_nullable_vector_of_handles_message_type, &message,
993 sizeof(message.inline_struct), nullptr, 0u, &error);
998 auto message_handles = reinterpret_cast<zx_handle_t*>(message.inline_struct.vector.data);
1007 multiple_nonnullable_vectors_of_handles_message_layout message = {};
1008 message.inline_struct.vector = fidl_vector_t{4, reinterpret_cast<void*>(FIDL_ALLOC_PRESENT)};
1009 message.inline_struct.vector2 = fidl_vector_t{4, reinterpret_cast<void*>(FIDL_ALLOC_PRESENT)};
1010 message.handles[0] = FIDL_HANDLE_PRESENT;
1011 message.handles[1] = FIDL_HANDLE_PRESENT;
1012 message.handles[2] = FIDL_HANDLE_PRESENT;
1013 message.handles[3] = FIDL_HANDLE_PRESENT;
1014 message.handles2[0] = FIDL_HANDLE_PRESENT;
1015 message.handles2[1] = FIDL_HANDLE_PRESENT;
1016 message.handles2[2] = FIDL_HANDLE_PRESENT;
1017 message.handles2[3] = FIDL_HANDLE_PRESENT;
1025 auto status = fidl_decode(&multiple_nonnullable_vectors_of_handles_message_type, &message,
1026 sizeof(message), handles, ArrayCount(handles), &error);
1037 multiple_nullable_vectors_of_handles_message_layout message = {};
1038 message.inline_struct.vector = fidl_vector_t{4, reinterpret_cast<void*>(FIDL_ALLOC_PRESENT)};
1039 message.inline_struct.vector2 = fidl_vector_t{4, reinterpret_cast<void*>(FIDL_ALLOC_PRESENT)};
1040 message.handles[0] = FIDL_HANDLE_PRESENT;
1041 message.handles[1] = FIDL_HANDLE_PRESENT;
1042 message.handles[2] = FIDL_HANDLE_PRESENT;
1043 message.handles[3] = FIDL_HANDLE_PRESENT;
1044 message.handles2[0] = FIDL_HANDLE_PRESENT;
1045 message.handles2[1] = FIDL_HANDLE_PRESENT;
1046 message.handles2[2] = FIDL_HANDLE_PRESENT;
1047 message.handles2[3] = FIDL_HANDLE_PRESENT;
1055 auto status = fidl_decode(&multiple_nullable_vectors_of_handles_message_type, &message,
1056 sizeof(message), handles, ArrayCount(handles), &error);
1067 unbounded_nonnullable_vector_of_uint32_message_layout message = {};
1068 message.inline_struct.vector = fidl_vector_t{4, reinterpret_cast<void*>(FIDL_ALLOC_PRESENT)};
1071 auto status = fidl_decode(&unbounded_nonnullable_vector_of_uint32_message_type, &message,
1072 sizeof(message), nullptr, 0, &error);
1077 auto message_uint32 = reinterpret_cast<zx_handle_t*>(message.inline_struct.vector.data);
1086 unbounded_nullable_vector_of_uint32_message_layout message = {};
1087 message.inline_struct.vector = fidl_vector_t{4, reinterpret_cast<void*>(FIDL_ALLOC_PRESENT)};
1090 auto status = fidl_decode(&unbounded_nullable_vector_of_uint32_message_type, &message,
1091 sizeof(message), nullptr, 0, &error);
1096 auto message_uint32 = reinterpret_cast<zx_handle_t*>(message.inline_struct.vector.data);
1105 unbounded_nonnullable_vector_of_uint32_message_layout message = {};
1106 message.inline_struct.vector = fidl_vector_t{4, reinterpret_cast<void*>(FIDL_ALLOC_ABSENT)};
1109 auto status = fidl_decode(&unbounded_nonnullable_vector_of_uint32_message_type, &message,
1110 sizeof(message), nullptr, 0, &error);
1121 unbounded_nullable_vector_of_uint32_message_layout message = {};
1122 message.inline_struct.vector = fidl_vector_t{0, reinterpret_cast<void*>(FIDL_ALLOC_ABSENT)};
1125 auto status = fidl_decode(&unbounded_nullable_vector_of_uint32_message_type, &message,
1126 sizeof(message.inline_struct), nullptr, 0u, &error);
1131 auto message_uint32 = reinterpret_cast<zx_handle_t*>(message.inline_struct.vector.data);
1140 bounded_32_nonnullable_vector_of_uint32_message_layout message = {};
1141 message.inline_struct.vector = fidl_vector_t{4, reinterpret_cast<void*>(FIDL_ALLOC_PRESENT)};
1144 auto status = fidl_decode(&bounded_32_nonnullable_vector_of_uint32_message_type, &message,
1145 sizeof(message), nullptr, 0, &error);
1150 auto message_uint32 = reinterpret_cast<zx_handle_t*>(message.inline_struct.vector.data);
1159 bounded_32_nullable_vector_of_uint32_message_layout message = {};
1160 message.inline_struct.vector = fidl_vector_t{4, reinterpret_cast<void*>(FIDL_ALLOC_PRESENT)};
1163 auto status = fidl_decode(&bounded_32_nullable_vector_of_uint32_message_type, &message,
1164 sizeof(message), nullptr, 0, &error);
1169 auto message_uint32 = reinterpret_cast<zx_handle_t*>(message.inline_struct.vector.data);
1178 bounded_32_nonnullable_vector_of_uint32_message_layout message = {};
1179 message.inline_struct.vector = fidl_vector_t{4, reinterpret_cast<void*>(FIDL_ALLOC_ABSENT)};
1182 auto status = fidl_decode(&bounded_32_nonnullable_vector_of_uint32_message_type, &message,
1183 sizeof(message.inline_struct), nullptr, 0u, &error);
1188 auto message_uint32 = reinterpret_cast<zx_handle_t*>(message.inline_struct.vector.data);
1197 bounded_32_nullable_vector_of_uint32_message_layout message = {};
1198 message.inline_struct.vector = fidl_vector_t{0, reinterpret_cast<void*>(FIDL_ALLOC_ABSENT)};
1201 auto status = fidl_decode(&bounded_32_nullable_vector_of_uint32_message_type, &message,
1202 sizeof(message.inline_struct), nullptr, 0u, &error);
1207 auto message_uint32 = reinterpret_cast<zx_handle_t*>(message.inline_struct.vector.data);
1216 multiple_nonnullable_vectors_of_uint32_message_layout message = {};
1217 message.inline_struct.vector = fidl_vector_t{4, reinterpret_cast<void*>(FIDL_ALLOC_PRESENT)};
1218 message.inline_struct.vector2 = fidl_vector_t{4, reinterpret_cast<void*>(FIDL_ALLOC_PRESENT)};
1221 auto status = fidl_decode(&multiple_nonnullable_vectors_of_uint32_message_type, &message,
1222 sizeof(message), nullptr, 0, &error);
1233 multiple_nullable_vectors_of_uint32_message_layout message = {};
1234 message.inline_struct.vector = fidl_vector_t{4, reinterpret_cast<void*>(FIDL_ALLOC_PRESENT)};
1235 message.inline_struct.vector2 = fidl_vector_t{4, reinterpret_cast<void*>(FIDL_ALLOC_PRESENT)};
1238 auto status = fidl_decode(&multiple_nullable_vectors_of_uint32_message_type, &message,
1239 sizeof(message), nullptr, 0, &error);
1250 nonnullable_handle_union_message_layout message = {};
1251 message.inline_struct.data.tag = 43u;
1252 message.inline_struct.data.handle = FIDL_HANDLE_PRESENT;
1259 auto status = fidl_decode(&nonnullable_handle_union_message_type, &message, sizeof(message),
1271 nonnullable_handle_union_message_layout message = {};
1272 message.inline_struct.data.tag = nonnullable_handle_union_kHandle;
1273 message.inline_struct.data.handle = FIDL_HANDLE_PRESENT;
1280 auto status = fidl_decode(&nonnullable_handle_union_message_type, &message, sizeof(message),
1285 EXPECT_EQ(message.inline_struct.data.tag, nonnullable_handle_union_kHandle);
1286 EXPECT_EQ(message.inline_struct.data.handle, dummy_handle_0);
1294 array_of_nonnullable_handles_union_message_layout message = {};
1295 message.inline_struct.data.tag = array_of_nonnullable_handles_union_kArrayOfArrayOfHandles;
1296 message.inline_struct.data.array_of_array_of_handles[0][0] = FIDL_HANDLE_PRESENT;
1297 message.inline_struct.data.array_of_array_of_handles[0][1] = FIDL_HANDLE_PRESENT;
1298 message.inline_struct.data.array_of_array_of_handles[1][0] = FIDL_HANDLE_PRESENT;
1299 message.inline_struct.data.array_of_array_of_handles[1][1] = FIDL_HANDLE_PRESENT;
1309 auto status = fidl_decode(&array_of_nonnullable_handles_union_message_type, &message,
1310 sizeof(message), handles, ArrayCount(handles), &error);
1314 EXPECT_EQ(message.inline_struct.data.tag,
1316 EXPECT_EQ(message.inline_struct.data.array_of_array_of_handles[0][0], dummy_handle_0);
1317 EXPECT_EQ(message.inline_struct.data.array_of_array_of_handles[0][1], dummy_handle_1);
1318 EXPECT_EQ(message.inline_struct.data.array_of_array_of_handles[1][0], dummy_handle_2);
1319 EXPECT_EQ(message.inline_struct.data.array_of_array_of_handles[1][1], dummy_handle_3);
1327 nonnullable_handle_union_ptr_message_layout message = {};
1328 message.inline_struct.data = reinterpret_cast<nonnullable_handle_union*>(FIDL_ALLOC_PRESENT);
1329 message.data.tag = nonnullable_handle_union_kHandle;
1330 message.data.handle = FIDL_HANDLE_PRESENT;
1337 auto status = fidl_decode(&nonnullable_handle_union_ptr_message_type, &message, sizeof(message),
1342 EXPECT_EQ(message.inline_struct.data, &message.data);
1343 EXPECT_EQ(message.inline_struct.data->tag, nonnullable_handle_union_kHandle);
1344 EXPECT_EQ(message.inline_struct.data->handle, dummy_handle_0);
1352 array_of_nonnullable_handles_union_ptr_message_layout message = {};
1353 message.inline_struct.data =
1355 message.data.tag = array_of_nonnullable_handles_union_kArrayOfArrayOfHandles;
1356 message.data.array_of_array_of_handles[0][0] = FIDL_HANDLE_PRESENT;
1357 message.data.array_of_array_of_handles[0][1] = FIDL_HANDLE_PRESENT;
1358 message.data.array_of_array_of_handles[1][0] = FIDL_HANDLE_PRESENT;
1359 message.data.array_of_array_of_handles[1][1] = FIDL_HANDLE_PRESENT;
1369 auto status = fidl_decode(&array_of_nonnullable_handles_union_ptr_message_type, &message,
1370 sizeof(message), handles, ArrayCount(handles), &error);
1374 EXPECT_EQ(message.inline_struct.data, &message.data);
1375 EXPECT_EQ(message.inline_struct.data->tag,
1377 EXPECT_EQ(message.inline_struct.data->array_of_array_of_handles[0][0], dummy_handle_0);
1378 EXPECT_EQ(message.inline_struct.data->array_of_array_of_handles[0][1], dummy_handle_1);
1379 EXPECT_EQ(message.inline_struct.data->array_of_array_of_handles[1][0], dummy_handle_2);
1380 EXPECT_EQ(message.inline_struct.data->array_of_array_of_handles[1][1], dummy_handle_3);
1388 nonnullable_handle_union_ptr_message_layout message = {};
1389 message.inline_struct.data = reinterpret_cast<nonnullable_handle_union*>(FIDL_ALLOC_ABSENT);
1392 auto status = fidl_decode(&nonnullable_handle_union_ptr_message_type, &message,
1393 sizeof(message.inline_struct), nullptr, 0u, &error);
1397 EXPECT_NULL(message.inline_struct.data);
1405 array_of_nonnullable_handles_union_ptr_message_layout message = {};
1406 message.inline_struct.data =
1410 auto status = fidl_decode(&array_of_nonnullable_handles_union_ptr_message_type, &message,
1411 sizeof(message.inline_struct), nullptr, 0u, &error);
1415 EXPECT_NULL(message.inline_struct.data);
1423 nested_structs_message_layout message = {};
1424 message.inline_struct.l0.handle_0 = FIDL_HANDLE_PRESENT;
1425 message.inline_struct.l0.l1.handle_1 = FIDL_HANDLE_PRESENT;
1426 message.inline_struct.l0.l1.l2.handle_2 = FIDL_HANDLE_PRESENT;
1427 message.inline_struct.l0.l1.l2.l3.handle_3 = FIDL_HANDLE_PRESENT;
1437 auto status = fidl_decode(&nested_structs_message_type, &message, sizeof(message), handles,
1443 EXPECT_EQ(message.inline_struct.l0.l1.handle_1, dummy_handle_0);
1444 EXPECT_EQ(message.inline_struct.l0.l1.l2.l3.handle_3, dummy_handle_1);
1445 EXPECT_EQ(message.inline_struct.l0.l1.l2.handle_2, dummy_handle_2);
1446 EXPECT_EQ(message.inline_struct.l0.handle_0, dummy_handle_3);
1455 nested_struct_ptrs_message_layout message = {};
1457 message.inline_struct.l0_present = reinterpret_cast<struct_ptr_level_0*>(FIDL_ALLOC_PRESENT);
1458 message.inline_struct.l0_inline.l1_present =
1460 message.inline_struct.l0_inline.l1_inline.l2_present =
1462 message.inline_struct.l0_inline.l1_inline.l2_inline.l3_present =
1464 message.in_in_out_2.l3_present = reinterpret_cast<struct_ptr_level_3*>(FIDL_ALLOC_PRESENT);
1465 message.in_out_1.l2_present = reinterpret_cast<struct_ptr_level_2*>(FIDL_ALLOC_PRESENT);
1466 message.in_out_1.l2_inline.l3_present =
1468 message.in_out_out_2.l3_present = reinterpret_cast<struct_ptr_level_3*>(FIDL_ALLOC_PRESENT);
1469 message.out_0.l1_present = reinterpret_cast<struct_ptr_level_1*>(FIDL_ALLOC_PRESENT);
1470 message.out_0.l1_inline.l2_present = reinterpret_cast<struct_ptr_level_2*>(FIDL_ALLOC_PRESENT);
1471 message.out_0.l1_inline.l2_inline.l3_present =
1473 message.out_in_out_2.l3_present = reinterpret_cast<struct_ptr_level_3*>(FIDL_ALLOC_PRESENT);
1474 message.out_out_1.l2_present = reinterpret_cast<struct_ptr_level_2*>(FIDL_ALLOC_PRESENT);
1475 message.out_out_1.l2_inline.l3_present =
1477 message.out_out_out_2.l3_present = reinterpret_cast<struct_ptr_level_3*>(FIDL_ALLOC_PRESENT);
1479 message.inline_struct.l0_absent = reinterpret_cast<struct_ptr_level_0*>(FIDL_ALLOC_ABSENT);
1480 message.inline_struct.l0_inline.l1_absent =
1482 message.inline_struct.l0_inline.l1_inline.l2_absent =
1484 message.inline_struct.l0_inline.l1_inline.l2_inline.l3_absent =
1486 message.in_in_out_2.l3_absent = reinterpret_cast<struct_ptr_level_3*>(FIDL_ALLOC_ABSENT);
1487 message.in_out_1.l2_absent = reinterpret_cast<struct_ptr_level_2*>(FIDL_ALLOC_ABSENT);
1488 message.in_out_1.l2_inline.l3_absent = reinterpret_cast<struct_ptr_level_3*>(FIDL_ALLOC_ABSENT);
1489 message.in_out_out_2.l3_absent = reinterpret_cast<struct_ptr_level_3*>(FIDL_ALLOC_ABSENT);
1490 message.out_0.l1_absent = reinterpret_cast<struct_ptr_level_1*>(FIDL_ALLOC_ABSENT);
1491 message.out_0.l1_inline.l2_absent = reinterpret_cast<struct_ptr_level_2*>(FIDL_ALLOC_ABSENT);
1492 message.out_0.l1_inline.l2_inline.l3_absent =
1494 message.out_in_out_2.l3_absent = reinterpret_cast<struct_ptr_level_3*>(FIDL_ALLOC_ABSENT);
1495 message.out_out_1.l2_absent = reinterpret_cast<struct_ptr_level_2*>(FIDL_ALLOC_ABSENT);
1496 message.out_out_1.l2_inline.l3_absent =
1498 message.out_out_out_2.l3_absent = reinterpret_cast<struct_ptr_level_3*>(FIDL_ALLOC_ABSENT);
1500 message.inline_struct.l0_inline.l1_inline.handle_1 = FIDL_HANDLE_PRESENT;
1501 message.in_in_out_out_3.handle_3 = FIDL_HANDLE_PRESENT;
1502 message.in_in_out_2.l3_inline.handle_3 = FIDL_HANDLE_PRESENT;
1503 message.in_in_out_2.handle_2 = FIDL_HANDLE_PRESENT;
1504 message.in_in_in_out_3.handle_3 = FIDL_HANDLE_PRESENT;
1505 message.inline_struct.l0_inline.l1_inline.l2_inline.l3_inline.handle_3 = FIDL_HANDLE_PRESENT;
1506 message.inline_struct.l0_inline.l1_inline.l2_inline.handle_2 = FIDL_HANDLE_PRESENT;
1507 message.inline_struct.l0_inline.handle_0 = FIDL_HANDLE_PRESENT;
1508 message.in_out_1.handle_1 = FIDL_HANDLE_PRESENT;
1509 message.in_out_out_out_3.handle_3 = FIDL_HANDLE_PRESENT;
1510 message.in_out_out_2.l3_inline.handle_3 = FIDL_HANDLE_PRESENT;
1511 message.in_out_out_2.handle_2 = FIDL_HANDLE_PRESENT;
1512 message.in_out_in_out_3.handle_3 = FIDL_HANDLE_PRESENT;
1513 message.in_out_1.l2_inline.l3_inline.handle_3 = FIDL_HANDLE_PRESENT;
1514 message.in_out_1.l2_inline.handle_2 = FIDL_HANDLE_PRESENT;
1515 message.out_0.l1_inline.handle_1 = FIDL_HANDLE_PRESENT;
1516 message.out_in_out_out_3.handle_3 = FIDL_HANDLE_PRESENT;
1517 message.out_in_out_2.l3_inline.handle_3 = FIDL_HANDLE_PRESENT;
1518 message.out_in_out_2.handle_2 = FIDL_HANDLE_PRESENT;
1519 message.out_in_in_out_3.handle_3 = FIDL_HANDLE_PRESENT;
1520 message.out_0.l1_inline.l2_inline.l3_inline.handle_3 = FIDL_HANDLE_PRESENT;
1521 message.out_0.l1_inline.l2_inline.handle_2 = FIDL_HANDLE_PRESENT;
1522 message.out_0.handle_0 = FIDL_HANDLE_PRESENT;
1523 message.out_out_1.handle_1 = FIDL_HANDLE_PRESENT;
1524 message.out_out_out_out_3.handle_3 = FIDL_HANDLE_PRESENT;
1525 message.out_out_out_2.l3_inline.handle_3 = FIDL_HANDLE_PRESENT;
1526 message.out_out_out_2.handle_2 = FIDL_HANDLE_PRESENT;
1527 message.out_out_in_out_3.handle_3 = FIDL_HANDLE_PRESENT;
1528 message.out_out_1.l2_inline.l3_inline.handle_3 = FIDL_HANDLE_PRESENT;
1529 message.out_out_1.l2_inline.handle_2 = FIDL_HANDLE_PRESENT;
1541 auto status = fidl_decode(&nested_struct_ptrs_message_type, &message, sizeof(message), handles,
1552 EXPECT_EQ(message.inline_struct.l0_inline.l1_inline.handle_1, dummy_handle_0);
1555 EXPECT_EQ(message.inline_struct.l0_inline.l1_inline.l2_present->l3_present->handle_3,
1558 EXPECT_EQ(message.inline_struct.l0_inline.l1_inline.l2_present->l3_inline.handle_3,
1561 EXPECT_EQ(message.inline_struct.l0_inline.l1_inline.l2_present->handle_2, dummy_handle_3);
1564 EXPECT_EQ(message.inline_struct.l0_inline.l1_inline.l2_inline.l3_present->handle_3,
1567 EXPECT_EQ(message.inline_struct.l0_inline.l1_inline.l2_inline.l3_inline.handle_3,
1570 EXPECT_EQ(message.inline_struct.l0_inline.l1_inline.l2_inline.handle_2, dummy_handle_6);
1572 EXPECT_EQ(message.inline_struct.l0_inline.handle_0, dummy_handle_7);
1575 EXPECT_EQ(message.inline_struct.l0_inline.l1_present->handle_1, dummy_handle_8);
1578 EXPECT_EQ(message.inline_struct.l0_inline.l1_present->l2_present->l3_present->handle_3,
1581 EXPECT_EQ(message.inline_struct.l0_inline.l1_present->l2_present->l3_inline.handle_3,
1584 EXPECT_EQ(message.inline_struct.l0_inline.l1_present->l2_present->handle_2, dummy_handle_11);
1587 EXPECT_EQ(message.inline_struct.l0_inline.l1_present->l2_inline.l3_present->handle_3,
1590 EXPECT_EQ(message.inline_struct.l0_inline.l1_present->l2_inline.l3_inline.handle_3,
1593 EXPECT_EQ(message.inline_struct.l0_inline.l1_present->l2_inline.handle_2, dummy_handle_14);
1597 EXPECT_EQ(message.inline_struct.l0_present->l1_inline.handle_1, dummy_handle_15);
1600 EXPECT_EQ(message.inline_struct.l0_present->l1_inline.l2_present->l3_present->handle_3,
1603 EXPECT_EQ(message.inline_struct.l0_present->l1_inline.l2_present->l3_inline.handle_3,
1606 EXPECT_EQ(message.inline_struct.l0_present->l1_inline.l2_present->handle_2, dummy_handle_18);
1609 EXPECT_EQ(message.inline_struct.l0_present->l1_inline.l2_inline.l3_present->handle_3,
1612 EXPECT_EQ(message.inline_struct.l0_present->l1_inline.l2_inline.l3_inline.handle_3,
1615 EXPECT_EQ(message.inline_struct.l0_present->l1_inline.l2_inline.handle_2, dummy_handle_21);
1617 EXPECT_EQ(message.inline_struct.l0_present->handle_0, dummy_handle_22);
1620 EXPECT_EQ(message.inline_struct.l0_present->l1_present->handle_1, dummy_handle_23);
1623 EXPECT_EQ(message.inline_struct.l0_present->l1_present->l2_present->l3_present->handle_3,
1626 EXPECT_EQ(message.inline_struct.l0_present->l1_present->l2_present->l3_inline.handle_3,
1629 EXPECT_EQ(message.inline_struct.l0_present->l1_present->l2_present->handle_2, dummy_handle_26);
1632 EXPECT_EQ(message.inline_struct.l0_present->l1_present->l2_inline.l3_present->handle_3,
1635 EXPECT_EQ(message.inline_struct.l0_present->l1_present->l2_inline.l3_inline.handle_3,
1638 EXPECT_EQ(message.inline_struct.l0_present->l1_present->l2_inline.handle_2, dummy_handle_29);
1641 EXPECT_NULL(message.inline_struct.l0_absent);
1642 EXPECT_NULL(message.inline_struct.l0_inline.l1_absent);
1643 EXPECT_NULL(message.inline_struct.l0_inline.l1_inline.l2_absent);
1644 EXPECT_NULL(message.inline_struct.l0_inline.l1_inline.l2_inline.l3_absent);
1645 EXPECT_NULL(message.inline_struct.l0_inline.l1_inline.l2_present->l3_absent);
1646 EXPECT_NULL(message.inline_struct.l0_inline.l1_present->l2_absent);
1647 EXPECT_NULL(message.inline_struct.l0_inline.l1_present->l2_inline.l3_absent);
1648 EXPECT_NULL(message.inline_struct.l0_inline.l1_present->l2_present->l3_absent);
1649 EXPECT_NULL(message.inline_struct.l0_present->l1_absent);
1650 EXPECT_NULL(message.inline_struct.l0_present->l1_inline.l2_absent);
1651 EXPECT_NULL(message.inline_struct.l0_present->l1_inline.l2_inline.l3_absent);
1652 EXPECT_NULL(message.inline_struct.l0_present->l1_inline.l2_present->l3_absent);
1653 EXPECT_NULL(message.inline_struct.l0_present->l1_present->l2_absent);
1654 EXPECT_NULL(message.inline_struct.l0_present->l1_present->l2_inline.l3_absent);
1655 EXPECT_NULL(message.inline_struct.l0_present->l1_present->l2_present->l3_absent);
1660 void SetUpRecursionMessage(recursion_message_layout* message) {
1661 message->inline_struct.inline_union.tag = maybe_recurse_union_kMore;
1662 message->inline_struct.inline_union.more =
1664 message->depth_0.inline_union.tag = maybe_recurse_union_kMore;
1665 message->depth_0.inline_union.more =
1667 message->depth_1.inline_union.tag = maybe_recurse_union_kMore;
1668 message->depth_1.inline_union.more =
1670 message->depth_2.inline_union.tag = maybe_recurse_union_kMore;
1671 message->depth_2.inline_union.more =
1673 message->depth_3.inline_union.tag = maybe_recurse_union_kMore;
1674 message->depth_3.inline_union.more =
1676 message->depth_4.inline_union.tag = maybe_recurse_union_kMore;
1677 message->depth_4.inline_union.more =
1679 message->depth_5.inline_union.tag = maybe_recurse_union_kMore;
1680 message->depth_5.inline_union.more =
1682 message->depth_6.inline_union.tag = maybe_recurse_union_kMore;
1683 message->depth_6.inline_union.more =
1685 message->depth_7.inline_union.tag = maybe_recurse_union_kMore;
1686 message->depth_7.inline_union.more =
1688 message->depth_8.inline_union.tag = maybe_recurse_union_kMore;
1689 message->depth_8.inline_union.more =
1691 message->depth_9.inline_union.tag = maybe_recurse_union_kMore;
1692 message->depth_9.inline_union.more =
1694 message->depth_10.inline_union.tag = maybe_recurse_union_kMore;
1695 message->depth_10.inline_union.more =
1697 message->depth_11.inline_union.tag = maybe_recurse_union_kMore;
1698 message->depth_11.inline_union.more =
1700 message->depth_12.inline_union.tag = maybe_recurse_union_kMore;
1701 message->depth_12.inline_union.more =
1703 message->depth_13.inline_union.tag = maybe_recurse_union_kMore;
1704 message->depth_13.inline_union.more =
1706 message->depth_14.inline_union.tag = maybe_recurse_union_kMore;
1707 message->depth_14.inline_union.more =
1709 message->depth_15.inline_union.tag = maybe_recurse_union_kMore;
1710 message->depth_15.inline_union.more =
1712 message->depth_16.inline_union.tag = maybe_recurse_union_kMore;
1713 message->depth_16.inline_union.more =
1715 message->depth_17.inline_union.tag = maybe_recurse_union_kMore;
1716 message->depth_17.inline_union.more =
1718 message->depth_18.inline_union.tag = maybe_recurse_union_kMore;
1719 message->depth_18.inline_union.more =
1721 message->depth_19.inline_union.tag = maybe_recurse_union_kMore;
1722 message->depth_19.inline_union.more =
1724 message->depth_20.inline_union.tag = maybe_recurse_union_kMore;
1725 message->depth_20.inline_union.more =
1727 message->depth_21.inline_union.tag = maybe_recurse_union_kMore;
1728 message->depth_21.inline_union.more =
1730 message->depth_22.inline_union.tag = maybe_recurse_union_kMore;
1731 message->depth_22.inline_union.more =
1733 message->depth_23.inline_union.tag = maybe_recurse_union_kMore;
1734 message->depth_23.inline_union.more =
1736 message->depth_24.inline_union.tag = maybe_recurse_union_kMore;
1737 message->depth_24.inline_union.more =
1739 message->depth_25.inline_union.tag = maybe_recurse_union_kMore;
1740 message->depth_25.inline_union.more =
1742 message->depth_26.inline_union.tag = maybe_recurse_union_kMore;
1743 message->depth_26.inline_union.more =
1745 message->depth_27.inline_union.tag = maybe_recurse_union_kMore;
1746 message->depth_27.inline_union.more =
1753 recursion_message_layout message = {};
1756 SetUpRecursionMessage(&message);
1757 message.depth_28.inline_union.tag = maybe_recurse_union_kDone;
1758 message.depth_28.inline_union.handle = FIDL_HANDLE_PRESENT;
1766 auto status = fidl_decode(&recursion_message_type, &message,
1773 SetUpRecursionMessage(&message);
1774 message.depth_28.inline_union.tag = maybe_recurse_union_kMore;
1775 message.depth_28.inline_union.more =
1777 message.depth_29.inline_union.tag = maybe_recurse_union_kDone;
1778 message.depth_29.inline_union.handle = FIDL_HANDLE_PRESENT;
1781 status = fidl_decode(&recursion_message_type, &message, sizeof(message), handles,