Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

Znav
nextForward Declarations
prevPassing Interfaces by Value

As of Ice 3.5, you can optionally associate a numeric identifier with a class. The Ice run time substitutes this value, known as a compact type ID, in place of its equivalent string type ID during marshaling to conserve space. The compact type ID follows immediately after the class name, enclosed in parentheses:

Wiki Markup
{zcode:slice}
module MyModule {
class CompactExample(4) {
    // ...
};
};
{zcode}

In this example, the Ice run time marshals the value 4 instead of its string equivalent "::MyModule::CompactExample". The specified value must be a non-negative integer that is unique within the translation unit.

Info

Using values less than 255 produces the most efficient encoding.

See Also

Zret
 
Znav
nextForward Declarations
prevPassing Interfaces by Value