Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space IceMaster and version 3.7.1

Znav
nextRuby Mapping for Enumerations
prevRuby Mapping for Modules

On this page:

Table of Contents
maxLevel3

Mapping of Slice Built-In Types to Ruby Types

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

Slice

Ruby

bool

true or false

byte

Fixnum

short

Fixnum

int

Fixnum or Bignum

long

Fixnum or Bignum

float

Float

double

Float

string

String

Although Ruby supports arbitrary precision in its integer types, the Ice run time validates integer values to ensure they have valid ranges for their declared Slice types.

Ztop
Anchor
string
string

String Mapping in Ruby 1.8

String values returned as the result of a Slice operation (including return values, out parameters, and data members) contain UTF-8 encoded strings unless the program has installed a string converter, in which case string values use the converter's native encoding instead.

As string input values for a remote Slice operation, Ice accepts nil in addition to String objects; each occurrence of nil is marshaled as an empty string. Ice assumes that all String objects contain valid UTF-8 encoded strings unless the program has installed a string converter, in which case Ice assumes that String objects use the native encoding expected by the converter.

Ztop

String Mapping in Ruby 1.9 and later

String values returned as the result of a Slice operation (including return values, out parameters, and data members) contain UTF-8 encoded strings.

As string input values for a remote Slice operation, Ice accepts nil in addition to String objects; each occurrence of nil is marshaled as an empty string. Ice assumes that all String objects contain valid UTF-8 encoded strings.

The string converter facility is not used.

Ztop

See Also

Znav
nextRuby Mapping for Enumerations
prevRuby Mapping for Modules