Serialize plugin allows to serialize shared data. The plugin will convert all arrays from sparse to dense and dereference all pointers.
The serialized data will be shared as long the user data is shared.
PDI_OUT
: plugin will serialize and share serialized data on PDI_share
of given descriptor.PDI_IN
: plugin will deserialize data on PDI_reclaim
of given descriptor (to be sure that the serialized data have been writen to buffer by other plugin (e.g. done on event)).PDI_INOUT
: plugin will do step 1. on PDI_share
and step 2. on PDI_reclaim
.The serialize configuration is made of only:
key | value |
---|---|
logging | logging |
data name to serialize | serialized data name |
On each sparse_array
data share, the plugin will share serialized data under the dense_array
name. The dense_array
will be of type:
Another example:
On each pointer_to_sparse_array
data share, the plugin will share serialized data under the dense_array
name. The dense_array
again will be of type: