Descriptor arrays are specialised dynamic arrays that contain descriptors. Descriptor arrays have the behaviour expected of an array. i.e. descriptor elements can be inserted, appended, deleted etc.
There are two types of descriptor array:
an array which specifically takes non-modifiable pointer descriptors, TPtrC8
, TPtrC16
and TPtrC
.
an array constructed from any descriptor type, i.e. a descriptor derived from TDesC8
, TDesC16
or TDesC
.
There are differences in the way the two types of array are implemented and this determines which one is most suitable for a given situation.