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