Mixing pointers and arrays in IDL

tags = [, ]

There is a very thin line between the way various encodings that can be given to combinations of arrays and pointers in IDL files. Consider the following examples:

[size_is(...)] int data[] - Inline array of integers [size_is(...)] int *data - Pointer to array of integers [size_is(...)] int *data[] - Array of pointers followed by array of integers [size_is(,...)] int *data[] - Pointer to an array of integers

Summarizing the meaning of the operators:

  • [] stands for an in-line array
  • * is a pointer, possibly to an array
Go Top