10 references to PinnedMarshal
Microsoft.Interop.JavaScript.JSImportGenerator (2)
Marshaling\FuncJSGenerator.cs (1)
26
|| (context.CurrentStage == StubIdentifierContext.Stage.
PinnedMarshal
&& CodeContext.Direction == MarshalDirection.ManagedToUnmanaged)))
Marshaling\TaskJSGenerator.cs (1)
25
|| (context.CurrentStage == StubIdentifierContext.Stage.
PinnedMarshal
&& CodeContext.Direction == MarshalDirection.ManagedToUnmanaged)))
Microsoft.Interop.SourceGeneration (8)
GeneratedStatements.cs (3)
36
PinnedMarshal = GenerateStage(StubIdentifierContext.Stage.
PinnedMarshal
),
149
marshaller.Generate(writer, context with { CurrentStage = StubIdentifierContext.Stage.
PinnedMarshal
});
161
StubIdentifierContext.Stage.
PinnedMarshal
=> "Convert managed data to native data that requires the managed data to be pinned.",
Marshalling\CharMarshaller.cs (1)
52
else if (context.CurrentStage == StubIdentifierContext.Stage.
PinnedMarshal
)
Marshalling\CustomTypeMarshallingGenerator.cs (1)
45
case StubIdentifierContext.Stage.
PinnedMarshal
:
Marshalling\ElementsMarshalling.cs (3)
243
stagesToGenerate = [StubIdentifierContext.Stage.Marshal, StubIdentifierContext.Stage.
PinnedMarshal
];
247
stagesToGenerate = [StubIdentifierContext.Stage.Marshal, StubIdentifierContext.Stage.
PinnedMarshal
, StubIdentifierContext.Stage.CleanupCallerAllocated, StubIdentifierContext.Stage.CleanupCalleeAllocated];
313
&& stagesToGeneratePerElement.Any(stage => stage is StubIdentifierContext.Stage.Marshal or StubIdentifierContext.Stage.
PinnedMarshal
))