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