2.2.1.1.1.1 VT_VECTOR

The VT_VECTOR structure is used to pass one-dimensional arrays.


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

vVectorElements

vVectorData (variable)

...

vVectorElements (4 bytes): Unsigned 32-bit integer, indicating the number of elements in the vVectorData field.

vVectorData (variable): An array of items that have a type indicated by vType with the 0x1000 bit cleared. The size of an individual fixed-length item can be obtained from the fixed-length data type table, as specified in section 2.2.1.1. The length of this field in bytes can be calculated by multiplying vVectorElements by the size of an individual item.

For variable-length data types, vVectorData contains a sequence of consecutively marshaled simple types in which the type is indicated by vType with the 0x1000 bit cleared.

The elements in the vVectorData field MUST be separated by zero to 3 padding bytes such that each element begins at an offset that is a multiple of 4 bytes from the beginning of the message that contains this array. If padding bytes are present, the value they contain is arbitrary. The contents of the padding bytes MUST be ignored by the receiver.