19 references to CallerAllocatedBuffer
Microsoft.Interop.LibraryImportGenerator (5)
Analyzers\CustomMarshallerAttributeAnalyzer.cs (5)
747
if (shape.HasFlag(MarshallerShape.
CallerAllocatedBuffer
) && mode == MarshalMode.ManagedToUnmanagedIn)
762
if (!(shape.HasFlag(MarshallerShape.ToUnmanaged) || (mode == MarshalMode.ManagedToUnmanagedIn && shape.HasFlag(MarshallerShape.
CallerAllocatedBuffer
))))
900
if (shape.HasFlag(MarshallerShape.ToUnmanaged | MarshallerShape.
CallerAllocatedBuffer
))
1041
if (shape.HasFlag(MarshallerShape.
CallerAllocatedBuffer
) && mode == MarshalMode.ManagedToUnmanagedIn)
1056
if (!(shape.HasFlag(MarshallerShape.ToUnmanaged) || (mode == MarshalMode.ManagedToUnmanagedIn && shape.HasFlag(MarshallerShape.
CallerAllocatedBuffer
))))
Microsoft.Interop.SourceGeneration (14)
ManualTypeMarshallingHelper.cs (2)
536
if (!ModeOptionallyMatchesShape(mode) && !shape.HasFlag(MarshallerShape.
CallerAllocatedBuffer
) && !shape.HasFlag(MarshallerShape.ToUnmanaged))
645
if (mode != MarshalMode.Default && !shape.HasFlag(MarshallerShape.
CallerAllocatedBuffer
) && !shape.HasFlag(MarshallerShape.ToUnmanaged))
MarshallerShape.cs (3)
133
shape |= MarshallerShape.
CallerAllocatedBuffer
;
176
shape |= MarshallerShape.
CallerAllocatedBuffer
;
477
shape |= MarshallerShape.
CallerAllocatedBuffer
;
Marshalling\AttributedMarshallingModelGeneratorResolver.cs (4)
153
if (marshallerData.Shape.HasFlag(MarshallerShape.
CallerAllocatedBuffer
))
159
if (marshallerData.Shape.HasFlag(MarshallerShape.
CallerAllocatedBuffer
))
238
if (marshallerData.Shape.HasFlag(MarshallerShape.
CallerAllocatedBuffer
))
280
if (marshallerData.Shape.HasFlag(MarshallerShape.
CallerAllocatedBuffer
))
Marshalling\StatefulMarshallingStrategy.cs (2)
51
if (shape.HasFlag(MarshallerShape.ToUnmanaged) || shape.HasFlag(MarshallerShape.
CallerAllocatedBuffer
))
220
if (shape.HasFlag(MarshallerShape.ToUnmanaged) || shape.HasFlag(MarshallerShape.
CallerAllocatedBuffer
))
Marshalling\StatelessMarshallingStrategy.cs (3)
35
if (!shape.HasFlag(MarshallerShape.ToUnmanaged) && !shape.HasFlag(MarshallerShape.
CallerAllocatedBuffer
))
215
&& !(shape.HasFlag(MarshallerShape.
CallerAllocatedBuffer
)
393
if (shape.HasFlag(MarshallerShape.ToUnmanaged) || shape.HasFlag(MarshallerShape.
CallerAllocatedBuffer
))