L4Re Operating System Framework
Interface and Usage Documentation
|
Array data type for dynamically sized arrays in RPCs. More...
#include <ipc_array>
Array data type for dynamically sized arrays in RPCs.
ELEM_TYPE | The data type of an array element, should be 'const' when used as input. |
LEN_TYPE | Data type used to store the number of elements in the array. |
An Array generally encapsulates a data pointer and a length (number of elements). Array does not provide any storage for the data itself. The storage is either provided by a client-side caller or in the case of Array_ref is the message itself.
Arrays can be used as input or as output arguments, when used as input ELEM_TYPE should be qualified const, when used as output a reference to an array must be used and the ELEM_TYPE must not be qualified const. It is the caller's responsibility to provide an array buffer of sufficient length. If a message from the server is too large it will be silently truncated.
If backward compatibility with Ipc::Stream is required, then LEN_TYPE must be unsigned long
.