Skip to content

Latest commit

 

History

History
51 lines (37 loc) · 1.38 KB

size-is.md

File metadata and controls

51 lines (37 loc) · 1.38 KB
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: size_is
size_is (C++ COM Attribute)
10/02/2018
vc-attr.size_is
size_is attribute
70192d09-f6c5-4d52-b3fe-303f8cb10aa5

size_is

Specify the size of memory allocated for sized pointers, sized pointers to sized pointers, and single- or multidimensional arrays.

Syntax

[ size_is("expression") ]

Parameters

expression
The size of memory allocated for sized pointers.

Remarks

The size_is C++ attribute has the same functionality as the size_is MIDL attribute.

Example

See the example for first_is for a sample of how to specify a section of an array.

Requirements

Attribute context Value
Applies to Field in struct or union, interface parameter, interface method
Repeatable No
Required attributes None
Invalid attributes max_is

For more information about the attribute contexts, see Attribute Contexts.

See also

IDL Attributes
Typedef, Enum, Union, and Struct Attributes
Parameter Attributes
first_is
last_is
max_is
length_is