1 instantiation of SizeAndParamIndexInfo
Microsoft.Interop.SourceGeneration (1)
MarshallingAttributeInfo.cs (1)
103
public static readonly SizeAndParamIndexInfo Unspecified =
new
(UnspecifiedConstSize, UnspecifiedParam);
16 references to SizeAndParamIndexInfo
Microsoft.Interop.SourceGeneration (16)
MarshalAsParser.cs (6)
96
if (ArraySubType != (UnmanagedType)
SizeAndParamIndexInfo
.UnspecifiedConstSize)
101
if (CountInfo is
SizeAndParamIndexInfo
sizeParamIndex)
103
if (sizeParamIndex.ConstSize !=
SizeAndParamIndexInfo
.UnspecifiedConstSize)
142
SizeAndParamIndexInfo
arraySizeInfo =
SizeAndParamIndexInfo
.Unspecified;
182
UnmanagedType elementUnmanagedType = (UnmanagedType)
SizeAndParamIndexInfo
.UnspecifiedConstSize;
MarshalAsWithCustomMarshallersParser.cs (1)
60
if (arrayInfo.ArraySubType != (UnmanagedType)
SizeAndParamIndexInfo
.UnspecifiedConstSize)
Marshalling\AttributedMarshallingModelGeneratorResolver.cs (3)
54
SizeAndParamIndexInfo
(_,
SizeAndParamIndexInfo
.UnspecifiedParam) => null,
56
SizeAndParamIndexInfo
(_, TypePositionInfo param) => ValidateNumElementsExpression(param, out countInfoRequiresCast),
Marshalling\ElementsMarshalling.cs (5)
48
SizeAndParamIndexInfo
(int size,
SizeAndParamIndexInfo
.UnspecifiedParam) => (GetConstSizeExpression(size), false),
50
SizeAndParamIndexInfo
(
SizeAndParamIndexInfo
.UnspecifiedConstSize, TypePositionInfo param) => (GetExpressionForParam(param), false),
51
SizeAndParamIndexInfo
(int size, TypePositionInfo param) => ($"{GetConstSizeExpression(size)} + {GetExpressionForParam(param)}", true),
MarshallingAttributeInfo.cs (1)
103
public static readonly
SizeAndParamIndexInfo
Unspecified = new(UnspecifiedConstSize, UnspecifiedParam);