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