14 references to ToUnmanaged
Microsoft.Interop.LibraryImportGenerator (3)
Analyzers\CustomMarshallerAttributeAnalyzer.cs (3)
762
if (!(shape.HasFlag(MarshallerShape.
ToUnmanaged
) || (mode == MarshalMode.ManagedToUnmanagedIn && shape.HasFlag(MarshallerShape.CallerAllocatedBuffer))))
900
if (shape.HasFlag(MarshallerShape.
ToUnmanaged
| MarshallerShape.CallerAllocatedBuffer))
1056
if (!(shape.HasFlag(MarshallerShape.
ToUnmanaged
) || (mode == MarshalMode.ManagedToUnmanagedIn && shape.HasFlag(MarshallerShape.CallerAllocatedBuffer))))
Microsoft.Interop.SourceGeneration (11)
ManualTypeMarshallingHelper.cs (4)
461
if (!ModeOptionallyMatchesShape(mode) && !shape.HasFlag(MarshallerShape.CallerAllocatedBuffer) && !shape.HasFlag(MarshallerShape.
ToUnmanaged
))
516
if (!ModeOptionallyMatchesShape(mode) && ModeUsesManagedToUnmanagedShape(mode) && ModeUsesUnmanagedToManagedShape(mode) && !shape.HasFlag(MarshallerShape.
ToUnmanaged
))
562
if (mode != MarshalMode.Default && !shape.HasFlag(MarshallerShape.CallerAllocatedBuffer) && !shape.HasFlag(MarshallerShape.
ToUnmanaged
))
596
if (mode != MarshalMode.Default && ModeUsesManagedToUnmanagedShape(mode) && ModeUsesUnmanagedToManagedShape(mode) && !shape.HasFlag(MarshallerShape.
ToUnmanaged
))
MarshallerShape.cs (3)
130
shape |= MarshallerShape.
ToUnmanaged
;
172
shape |= MarshallerShape.
ToUnmanaged
;
481
shape |= MarshallerShape.
ToUnmanaged
;
Marshalling\StatefulMarshallingStrategy.cs (2)
70
if (!shape.HasFlag(MarshallerShape.
ToUnmanaged
))
84
if (!shape.HasFlag(MarshallerShape.
ToUnmanaged
) && !shape.HasFlag(MarshallerShape.CallerAllocatedBuffer))
Marshalling\StatelessMarshallingStrategy.cs (1)
53
if (!shape.HasFlag(MarshallerShape.
ToUnmanaged
) && !shape.HasFlag(MarshallerShape.CallerAllocatedBuffer))
MarshallingAttributeInfo.cs (1)
149
MarshallerShape.
ToUnmanaged
,