Ice.Value

class Ice.Value

Bases: object

The base class for instances of Slice-defined classes.

Notes

If a subclass defines ice_preMarshal(self), the Ice runtime calls it just before marshaling the instance; if it defines ice_postUnmarshal(self), the runtime calls it after the instance has been fully unmarshaled.

ice_id() str

Returns the Slice type ID of the most-derived class supported by this object.

Returns:

The Slice type ID.

Return type:

str

static ice_staticId() str

Returns the Slice type ID of this type.

Returns:

The return value is always ::Ice::Object.

Return type:

str

ice_getSlicedData() SlicedData | None

Gets the sliced data associated with this instance.

Returns:

The sliced data if this value was sliced during unmarshaling, None otherwise. Unknown slices are preserved only when the sender uses the sliced format.

Return type:

SlicedData | None