8 references to Pin
Microsoft.Interop.SourceGeneration (8)
GeneratedStatements.cs (2)
35
Pin = GenerateStatementsForStubContext(marshallers, context with { CurrentStage = StubIdentifierContext.Stage.
Pin
}).Cast<FixedStatementSyntax>().ToImmutableArray(),
181
StubIdentifierContext.Stage.
Pin
=> "Pin data in preparation for calling the P/Invoke.",
Marshalling\BlittableMarshaller.cs (1)
46
if (context.CurrentStage == StubIdentifierContext.Stage.
Pin
)
Marshalling\CharMarshaller.cs (1)
53
if (context.CurrentStage == StubIdentifierContext.Stage.
Pin
)
Marshalling\CustomTypeMarshallingGenerator.cs (1)
42
case StubIdentifierContext.Stage.
Pin
:
Marshalling\MarshallingGenerator.cs (1)
120
/// For <see cref="StubIdentifierContext.Stage.
Pin
"/>, any statements not of type
Marshalling\StaticPinnableManagedValueMarshaller.cs (1)
74
if (context.CurrentStage == StubIdentifierContext.Stage.
Pin
)
StubIdentifierContext.cs (1)
37
/// Convert managed data to native data, assuming that any values pinned in the <see cref="
Pin
"/> stage are pinned.