Method WithNativeDisableUnsafePtrRestriction
WithNativeDisableUnsafePtrRestriction<TDescription, TCapturedVariableType>(TDescription, TCapturedVariableType*)
Allows capture of a native container to be passed to a job even though it contains a pointer, which is usually not allowed.
Declaration
public static TDescription WithNativeDisableUnsafePtrRestriction<TDescription, TCapturedVariableType>(this TDescription description, TCapturedVariableType* capturedVariable) where TDescription : ILambdaJobDescription where TCapturedVariableType : unmanaged
Parameters
Type | Name | Description |
---|---|---|
TDescription | description | The target object |
TCapturedVariableType* | capturedVariable | Captured variable that stores a NativeContainer |
Returns
Type | Description |
---|---|
TDescription | The target object, suitable for chaining multiple methods |
Type Parameters
Name | Description |
---|---|
TDescription | Type of target object |
TCapturedVariableType | Type of captured variable |