摘要 |
Methods and apparatus, including computer program apparatus, implement techniques for processing data. A first process runs in a first address space, and includes a request to send data having a data type to a second process running in a second address space. At runtime, a type creation function is called to create a first type object describing the data type. The first type object has a set of associated functions for processing data having the data type. The set of associated functions includes a marshalling function for encoding data having the data type and an unmarshalling function for decoding data having the data type. The data is sent to the second process by executing the marshalling function on the data in the first process to generate encoded data and executing the unmarshalling function on the encoded data to decode the encoded data in the second process.
|