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