Skip to main content

register_custom_reader

Function register_custom_reader 

Source
pub fn register_custom_reader(id: &str, reader: Arc<CustomReader>)
Expand description

Sets the reader of the custom valuetype id (VM_CUSTOM), the unmarshaling half of CORBA::CustomMarshal. A value of a custom type without a reader is read as MARSHAL, as when no value factory is registered.

A custom value is written from its state: the items in it, each a Value::Any, are written one after the other with their types, the way its marshaling code writes them (CORBA::DataOutputStream).