4 references to CastToManagedIfNecessary
Microsoft.Interop.SourceGeneration (4)
Marshalling\ElementsMarshalling.cs (4)
105
string destination =
CastToManagedIfNecessary
($"{MemoryMarshalType}.CreateSpan(ref {MemoryMarshalType}.GetReference({source}), {source}.Length)");
111
string destination =
CastToManagedIfNecessary
(CollectionSource.GetUnmanagedValuesDestination(context));
117
string source =
CastToManagedIfNecessary
(CollectionSource.GetUnmanagedValuesDestination(context));
125
string source =
CastToManagedIfNecessary
(CollectionSource.GetUnmanagedValuesSource(context));