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)
104
string source = CollectionSource.
GetUnmanagedValuesSource
(context);
125
string source = CastToManagedIfNecessary(CollectionSource.
GetUnmanagedValuesSource
(context));
180
writer.WriteLine($"{TypeNames.System_ReadOnlySpan}<{unmanagedElementType}> {nativeSpanIdentifier} = {CollectionSource.
GetUnmanagedValuesSource
(context)};");
227
: CollectionSource.
GetUnmanagedValuesSource
(context);
254
writer.WriteLine($"{TypeNames.System_Span}<{unmanagedElementType}> {nativeSpanIdentifier} = {MemoryMarshalType}.CreateSpan(ref {UnsafeType}.AsRef(in {CollectionSource.
GetUnmanagedValuesSource
(context)}.GetPinnableReference()), {numElementsIdentifier});");