2.2.1.2 Array of N Data Type Instances

In this case, the custom-marshaled data contains N Fixed_Portion blocks (one for each structure) followed by the Variable_Data block containing data referenced by offsets from all N Fixed_Portion blocks.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

Fixed_Portion_1 (variable)

...

Fixed_Portion_N (variable)

...

Variable_Data (variable)

...

Fixed_Portion_1 (variable): The Fixed_Portion of the first data type instance in the array.

Fixed_Portion_N (variable): The Fixed_Portion of the last data type instance in the array.

Variable_Data (variable): A sequence of zero or more optional fields (or variable-length fields). The data in this field is referenced by offset from the Fixed_Portion blocks.