43 references to IsByRef
Microsoft.Interop.ComInterfaceGenerator (2)
Marshallers\StructAsHResultMarshallerFactory.cs (2)
81
return info.
IsByRef
? SignatureBehavior.PointerToNativeType : SignatureBehavior.NativeType;
86
if (info.
IsByRef
)
Microsoft.Interop.JavaScript.JSImportGenerator (1)
JSGeneratorFactory.cs (1)
19
if (info.
IsByRef
|| info.ByValueContentsMarshalKind != ByValueContentsMarshalKind.Default)
Microsoft.Interop.LibraryImportGenerator (1)
PInvokeStubCodeGenerator.cs (1)
75
noMarshallingNeeded &= generator is { Generator: BlittableMarshaller, TypeInfo.
IsByRef
: false }
Microsoft.Interop.SourceGeneration (39)
Marshalling\BlittableMarshaller.cs (6)
21
return info.
IsByRef
? SignatureBehavior.PointerToNativeType : SignatureBehavior.NativeType;
26
if (!info.
IsByRef
)
39
if (!info.
IsByRef
|| context.IsInStubReturnPosition(info))
72
if (elementMarshalling is MarshalDirection.ManagedToUnmanaged or MarshalDirection.Bidirectional && info.
IsByRef
)
83
if (elementMarshalling is MarshalDirection.UnmanagedToManaged or MarshalDirection.Bidirectional && info.
IsByRef
)
99
return info.
IsByRef
&& !context.IsInStubReturnPosition(info) && !context.SingleFrameSpansNativeContext;
Marshalling\BoolMarshaller.cs (2)
37
return info.
IsByRef
? SignatureBehavior.PointerToNativeType : SignatureBehavior.NativeType;
42
if (info.
IsByRef
)
Marshalling\ByValueMarshalKindSupportDescriptor.cs (1)
74
if (info.
IsByRef
)
Marshalling\CharMarshaller.cs (5)
28
else if (info.
IsByRef
)
44
return info.
IsByRef
? SignatureBehavior.PointerToNativeType : SignatureBehavior.NativeType;
93
if (info.
IsByRef
)
126
return !IsPinningPathSupported(info, context) && (elementMarshalDirection != MarshalDirection.ManagedToUnmanaged || info.
IsByRef
);
133
&& info.
IsByRef
;
Marshalling\CustomTypeMarshallingGenerator.cs (3)
28
return info.
IsByRef
? ValueBoundaryBehavior.AddressOfNativeIdentifier : ValueBoundaryBehavior.NativeIdentifier;
38
return info.
IsByRef
? SignatureBehavior.PointerToNativeType : SignatureBehavior.NativeType;
111
&& !info.
IsByRef
Marshalling\DelegateMarshaller.cs (2)
22
return info.
IsByRef
? SignatureBehavior.PointerToNativeType : SignatureBehavior.NativeType;
27
return info.
IsByRef
? ValueBoundaryBehavior.AddressOfNativeIdentifier : ValueBoundaryBehavior.NativeIdentifier;
Marshalling\ElementsMarshalling.cs (1)
472
RefKind = info.
IsByRef
? info.RefKind : info.ByValueContentsMarshalKind.GetRefKindForByValueContentsKind(),
Marshalling\MarshallerHelpers.cs (5)
91
return context.SingleFrameSpansNativeContext && (!info.
IsByRef
|| info.RefKind == RefKind.In || info.RefKind == RefKind.RefReadOnlyParameter);
295
if (!info.
IsByRef
)
317
if (!info.
IsByRef
)
371
if (countInfo.ElementInfo.
IsByRef
&& countInfo.ElementInfo.RefKind is RefKind.Out)
406
if (typeInfo.
IsByRef
)
Marshalling\MarshallingGeneratorExtensions.cs (4)
86
ValueBoundaryBehavior.ManagedIdentifier => info.
IsByRef
? param : managed,
145
ValueBoundaryBehavior.ManagedIdentifier when !info.
IsByRef
=> Argument(IdentifierName(managedIdentifier)),
146
ValueBoundaryBehavior.ManagedIdentifier when info.
IsByRef
=> Argument(IdentifierName(managedIdentifier)).WithRefKindKeyword(MarshallerHelpers.GetManagedArgumentRefKindKeyword(info)),
157
if (info.
IsByRef
)
Marshalling\StatefulMarshallingStrategy.cs (4)
394
if (context.Direction == MarshalDirection.ManagedToUnmanaged && !info.
IsByRef
&& info.ByValueContentsMarshalKind == ByValueContentsMarshalKind.Out)
402
if (context.Direction == MarshalDirection.UnmanagedToManaged && !info.
IsByRef
&& info.ByValueContentsMarshalKind.HasFlag(ByValueContentsMarshalKind.Out))
449
if (context.Direction == MarshalDirection.ManagedToUnmanaged && !info.
IsByRef
&& info.ByValueContentsMarshalKind.HasFlag(ByValueContentsMarshalKind.Out))
457
if (context.Direction == MarshalDirection.UnmanagedToManaged && !info.
IsByRef
&& info.ByValueContentsMarshalKind == ByValueContentsMarshalKind.Out)
Marshalling\StatelessMarshallingStrategy.cs (5)
463
if (context.Direction == MarshalDirection.ManagedToUnmanaged && !info.
IsByRef
&& info.ByValueContentsMarshalKind.HasFlag(ByValueContentsMarshalKind.Out))
672
if (context.Direction == MarshalDirection.ManagedToUnmanaged && !info.
IsByRef
&& info.ByValueContentsMarshalKind == ByValueContentsMarshalKind.Out)
681
if (context.Direction == MarshalDirection.UnmanagedToManaged && !info.
IsByRef
&& info.ByValueContentsMarshalKind.HasFlag(ByValueContentsMarshalKind.Out))
719
if (context.Direction == MarshalDirection.ManagedToUnmanaged && !info.
IsByRef
&& info.ByValueContentsMarshalKind.HasFlag(ByValueContentsMarshalKind.Out))
727
if (context.Direction == MarshalDirection.UnmanagedToManaged && !info.
IsByRef
&& info.ByValueContentsMarshalKind == ByValueContentsMarshalKind.Out)
Marshalling\StaticPinnableManagedValueMarshaller.cs (1)
73
return context.SingleFrameSpansNativeContext && !info.
IsByRef
&& !context.IsInStubReturnPosition(info);