The stream classes provide all of the low-level methods necessary for encoding and decoding Ice types. However, it would be tedious and error-prone to manually encode complex Ice types such as classes, structs, and dictionaries using these low-level functions. For this reason, the Slice compiler generates helper methods for streaming complex Ice types.
We will use the following Slice definitions to demonstrate the language mapping:
The Slice compiler generates the corresponding helper classes and methods shown below: