2 implementations of GetUnmanagedValuesSource
Microsoft.Interop.SourceGeneration (2)
Marshalling\StatefulMarshallingStrategy.cs (1)
155
public string
GetUnmanagedValuesSource
(StubIdentifierContext context)
Marshalling\StatelessMarshallingStrategy.cs (1)
287
public string
GetUnmanagedValuesSource
(StubIdentifierContext context)
5 references to GetUnmanagedValuesSource
Microsoft.Interop.SourceGeneration (5)
Marshalling\ElementsMarshalling.cs (5)
103
string source = CollectionSource.
GetUnmanagedValuesSource
(context);
124
string source = CastToManagedIfNecessary(CollectionSource.
GetUnmanagedValuesSource
(context));
179
writer.WriteLine($"{TypeNames.System_ReadOnlySpan}<{unmanagedElementType}> {nativeSpanIdentifier} = {CollectionSource.
GetUnmanagedValuesSource
(context)};");
226
: CollectionSource.
GetUnmanagedValuesSource
(context);
253
writer.WriteLine($"{TypeNames.System_Span}<{unmanagedElementType}> {nativeSpanIdentifier} = {MemoryMarshalType}.CreateSpan(ref {UnsafeType}.AsRef(in {CollectionSource.
GetUnmanagedValuesSource
(context)}.GetPinnableReference()), {numElementsIdentifier});");