16 references to CallerAllocatedBuffer
Microsoft.Interop.LibraryImportGenerator (5)
Analyzers\CustomMarshallerAttributeAnalyzer.cs (5)
747if (shape.HasFlag(MarshallerShape.CallerAllocatedBuffer) && mode == MarshalMode.ManagedToUnmanagedIn) 762if (!(shape.HasFlag(MarshallerShape.ToUnmanaged) || (mode == MarshalMode.ManagedToUnmanagedIn && shape.HasFlag(MarshallerShape.CallerAllocatedBuffer)))) 900if (shape.HasFlag(MarshallerShape.ToUnmanaged | MarshallerShape.CallerAllocatedBuffer)) 1041if (shape.HasFlag(MarshallerShape.CallerAllocatedBuffer) && mode == MarshalMode.ManagedToUnmanagedIn) 1056if (!(shape.HasFlag(MarshallerShape.ToUnmanaged) || (mode == MarshalMode.ManagedToUnmanagedIn && shape.HasFlag(MarshallerShape.CallerAllocatedBuffer))))
Microsoft.Interop.SourceGeneration (11)
ManualTypeMarshallingHelper.cs (2)
461if (!ModeOptionallyMatchesShape(mode) && !shape.HasFlag(MarshallerShape.CallerAllocatedBuffer) && !shape.HasFlag(MarshallerShape.ToUnmanaged)) 562if (mode != MarshalMode.Default && !shape.HasFlag(MarshallerShape.CallerAllocatedBuffer) && !shape.HasFlag(MarshallerShape.ToUnmanaged))
MarshallerShape.cs (3)
133shape |= MarshallerShape.CallerAllocatedBuffer; 176shape |= MarshallerShape.CallerAllocatedBuffer; 477shape |= MarshallerShape.CallerAllocatedBuffer;
Marshalling\AttributedMarshallingModelGeneratorResolver.cs (4)
169if (marshallerData.Shape.HasFlag(MarshallerShape.CallerAllocatedBuffer)) 175if (marshallerData.Shape.HasFlag(MarshallerShape.CallerAllocatedBuffer)) 263if (marshallerData.Shape.HasFlag(MarshallerShape.CallerAllocatedBuffer)) 309if (marshallerData.Shape.HasFlag(MarshallerShape.CallerAllocatedBuffer))
Marshalling\StatefulMarshallingStrategy.cs (1)
84if (!shape.HasFlag(MarshallerShape.ToUnmanaged) && !shape.HasFlag(MarshallerShape.CallerAllocatedBuffer))
Marshalling\StatelessMarshallingStrategy.cs (1)
53if (!shape.HasFlag(MarshallerShape.ToUnmanaged) && !shape.HasFlag(MarshallerShape.CallerAllocatedBuffer))