RawAttribute
Description
- Derived from
-
Attribute abstract
The annotated array parameter is only accessed via element indices, no other array metadata (such as array length) is used. The array will be passed as a raw pointer, if applicable to the target programming language (for example C++).
Raw array parameters should only be used in non-public code and by low-level APIs, where the implicit array length is handled properly by callers, to avoid buffer overflow and underflow errors. For other APIs, it is recommended to use regular array parameters with proper preconditions (for example Precondition.NotWithinRange2).