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)
83
writer.WriteLine($"{numElementsIdentifier} = {source.
GetManagedValuesSource
(context)}.Length;");
111
writer.WriteLine($"{CollectionSource.
GetManagedValuesSource
(context)}.CopyTo({destination});");
117
string managedSource = CollectionSource.
GetManagedValuesSource
(context);
159
writer.WriteLine($"{TypeNames.System_ReadOnlySpan}<{elementMarshaller.TypeInfo.ManagedType.FullTypeName}> {managedSpanIdentifier} = {CollectionSource.
GetManagedValuesSource
(context)};");
196
writer.WriteLine($"{TypeNames.System_Span}<{elementMarshaller.TypeInfo.ManagedType.FullTypeName}> {managedSpanIdentifier} = {MemoryMarshalType}.CreateSpan(ref {UnsafeType}.AsRef(in {CollectionSource.
GetManagedValuesSource
(context)}.GetPinnableReference()), {numElementsIdentifier});");