Preliminary documentation for Ice for MATLAB. Do not use in production applications. Refer to the space directory for other releases.

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

On this page:

Mapping of Slice Built-In Types to MATLAB Types

The Slice built-in types are mapped to MATLAB types as shown in this table:

Slice

MATLAB

bool

logical

byte

uint8

short

int16

int

int32

long

int64

float

single

double

double

string

char

String Mapping in MATLAB

String values returned as the result of a Slice operation, including return values, out parameters, and data members, are converted from UTF-8 (Ice's on-the-wire encoding) to MATLAB's native UTF-16 encoding.

As string input values for a remote Slice operation, Ice accepts empty arrays in addition to char objects; each occurrence of an empty array is marshaled as an empty string. Ice assumes that all char objects contain valid UTF-16 encoded strings and converts them to UTF-8 prior to marshaling.

Ice for MATLAB currently does not support the string type added in MATLAB R2016b.

See Also
  • No labels