libcamera
v0.3.2+116-83c5ad0f
Supporting cameras in Linux since 2019
|
IPA Data Serializer. More...
Static Public Member Functions | |
static std::tuple< std::vector< uint8_t >, std::vector< SharedFD > > | serialize (const T &data, ControlSerializer *cs=nullptr) |
Serialize an object into byte vector and fd vector. More... | |
static T | deserialize (const std::vector< uint8_t > &data, ControlSerializer *cs=nullptr) |
Deserialize byte vector into an object. More... | |
static T | deserialize (std::vector< uint8_t >::const_iterator dataBegin, std::vector< uint8_t >::const_iterator dataEnd, ControlSerializer *cs=nullptr) |
Deserialize byte vector into an object. More... | |
static T | deserialize (const std::vector< uint8_t > &data, const std::vector< SharedFD > &fds, ControlSerializer *cs=nullptr) |
Deserialize byte vector and fd vector into an object. More... | |
static T | deserialize (std::vector< uint8_t >::const_iterator dataBegin, std::vector< uint8_t >::const_iterator dataEnd, std::vector< SharedFD >::const_iterator fdsBegin, std::vector< SharedFD >::const_iterator fdsEnd, ControlSerializer *cs=nullptr) |
Deserialize byte vector and fd vector into an object. More... | |
IPA Data Serializer.
Static template class that provides functions for serializing and deserializing IPA data.
|
static |
Deserialize byte vector into an object.
T | Type of object to deserialize to |
[in] | data | Byte vector to deserialize from |
[in] | cs | ControlSerializer |
This version of deserialize() can be used if the object type T and its members don't have any SharedFD.
cs is only necessary if the object type T or its members contain ControlList or ControlInfoMap.
|
static |
Deserialize byte vector into an object.
T | Type of object to deserialize to |
[in] | dataBegin | Begin iterator of byte vector to deserialize from |
[in] | dataEnd | End iterator of byte vector to deserialize from |
[in] | cs | ControlSerializer |
This version of deserialize() can be used if the object type T and its members don't have any SharedFD.
cs is only necessary if the object type T or its members contain ControlList or ControlInfoMap.
|
static |
Deserialize byte vector and fd vector into an object.
T | Type of object to deserialize to |
[in] | data | Byte vector to deserialize from |
[in] | fds | Fd vector to deserialize from |
[in] | cs | ControlSerializer |
This version of deserialize() (or the iterator version) must be used if the object type T or its members contain SharedFD.
cs is only necessary if the object type T or its members contain ControlList or ControlInfoMap.
|
static |
Deserialize byte vector and fd vector into an object.
T | Type of object to deserialize to |
[in] | dataBegin | Begin iterator of byte vector to deserialize from |
[in] | dataEnd | End iterator of byte vector to deserialize from |
[in] | fdsBegin | Begin iterator of fd vector to deserialize from |
[in] | fdsEnd | End iterator of fd vector to deserialize from |
[in] | cs | ControlSerializer |
This version of deserialize() (or the vector version) must be used if the object type T or its members contain SharedFD.
cs is only necessary if the object type T or its members contain ControlList or ControlInfoMap.
|
static |
Serialize an object into byte vector and fd vector.
T | Type of object to serialize |
[in] | data | Object to serialize |
[in] | cs | ControlSerializer |
cs is only necessary if the object type T or its members contain ControlList or ControlInfoMap.