Main Content

Advantages of Implementing a Type-Safe Interface

Some of the reasons to implement type-safe interfaces include:

  • You avoid training and coding costs associated with teaching end users to work with the MWArray API.

  • You minimize cost of data you must marshal by either placing MWArray objects in type-safe interfaces or by calling MWArrayfunctions in the deployed MATLAB® code.

  • Flexibility — you mix type-safe interfaces with manual data marshaling to accommodate data of varying sizes and access patterns. For example, you may have a few large data objects (images, for example) that would incur excess cost to your organization if managed with a type-safe interface. By mixing type-safe interfaces and manual marshaling, smaller data types can be managed automatically with the type-safe interface and your large data can be managed on an as-needed basis.