Serialize plugin
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.
- In case of the share with
PDI_OUT
: plugin will serialize and share serialized data onPDI_share
of given descriptor. - In case of the share with
PDI_IN
: plugin will deserialize data onPDI_reclaim
of given descriptor (to be sure that the serialized data have been writen to buffer by other plugin (e.g. done on event)). - In case of the share with
PDI_INOUT
: plugin will do step 1. onPDI_share
and step 2. onPDI_reclaim
.
Configuration grammar
The serialize configuration is made of only:
key | value |
---|---|
data name to serialize | serialized data name |
Here is an example:
data:
sparse_array:
type: array
subtype: int
size: 8
start: 2
subsize: 4
plugins:
serialize:
sparse_array: dense_array
On each sparse_array
data share, the plugin will share serialized data under the dense_array
name. The dense_array
will be of type:
type: array
subtype: int
size: 4
Another example:
data:
pointer_to_sparse_array:
type: pointer
subtype:
type: array
subtype: int
size: 8
start: 2
subsize: 4
plugins:
serialize:
pointer_to_sparse_array: dense_array
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:
type: array
subtype: int
size: 4
Last modified January 1, 0001