FireSync API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kStatus kPxPort_AcceptForeignData ( kPxPort  port,
kBool  enable 
)

Enables an input port to accept foreign data.

Messages can contain memory that is inaccessible to the host CPU (e.g., Cuda device memory). By default, these messages will be automatically converted to host-accessible memory before being passed to block input ports.

This method can be used to override the default behavior, allowing messages that contain foreign data elements to be accepted. In this case, the receiver is responsible for ensuring that foreign data is not directly accessed by the CPU.

This method can only be called from within a block's VOnSetup override.

Parameters
portPort object.
enablekTRUE to enable foreign data to be accepted.
Returns
Operation status.