2 implementations of GetManagedValuesSource
Microsoft.Interop.SourceGeneration (2)
Marshalling\StatefulMarshallingStrategy.cs (1)
149public string GetManagedValuesSource(StubIdentifierContext context)
Marshalling\StatelessMarshallingStrategy.cs (1)
281public string GetManagedValuesSource(StubIdentifierContext context)
5 references to GetManagedValuesSource
Microsoft.Interop.SourceGeneration (5)
Marshalling\ElementsMarshalling.cs (5)
83writer.WriteLine($"{numElementsIdentifier} = {source.GetManagedValuesSource(context)}.Length;"); 111writer.WriteLine($"{CollectionSource.GetManagedValuesSource(context)}.CopyTo({destination});"); 117string managedSource = CollectionSource.GetManagedValuesSource(context); 159writer.WriteLine($"{TypeNames.System_ReadOnlySpan}<{elementMarshaller.TypeInfo.ManagedType.FullTypeName}> {managedSpanIdentifier} = {CollectionSource.GetManagedValuesSource(context)};"); 196writer.WriteLine($"{TypeNames.System_Span}<{elementMarshaller.TypeInfo.ManagedType.FullTypeName}> {managedSpanIdentifier} = {MemoryMarshalType}.CreateSpan(ref {UnsafeType}.AsRef(in {CollectionSource.GetManagedValuesSource(context)}.GetPinnableReference()), {numElementsIdentifier});");