|
ROSE 2.1.0
|
Helper class for metadata and payload handling.
This class serves as a convenient abstraction for working with metadata and payloads in the serialization system. It provides direct access to metadata fields, methods to manipulate the payload, and serialization support.
Definition at line 57 of file SerialFrame.h.
#include <Rose/BinaryAnalysis/Serialization/SerialFrame.h>
Public Member Functions | |
| FrameRecord () | |
| Default constructor creates an empty record. | |
| FrameRecord (Serialization::Savable objectType, Serialization::Format format) | |
| Construct with specific objectType and format. | |
| FrameRecord (const Record &record) | |
| Construct from a Record struct. | |
| Record | toRecord () const |
| Convert to a Record struct. | |
| const std::vector< char > & | payload () const |
| Field getter and setters. | |
| void | payload (const std::vector< char > &payload) |
| Serialization::Savable | objectType () const |
| void | objectType (Serialization::Savable type) |
| Serialization::Format | format () const |
| void | format (Serialization::Format fmt) |
| std::string | roseVersion () const |
| void | roseVersion (const std::string &ver) |
| std::uint64_t | payloadSize () const |
| Get the payload size. | |
| template<typename T > | |
| void | serializeObject (const T &object) |
| Template method to serialize an object directly to this record's payload. | |
| template<typename T > | |
| void | deserializeObject (T &object) const |
| Template method to deserialize an object from this record's payload. | |
| template<class Archive > | |
| void | serialize (Archive &ar, const unsigned) |
| Boost serialization support. | |
|
inline |
Default constructor creates an empty record.
Definition at line 60 of file SerialFrame.h.
|
inline |
Construct with specific objectType and format.
Definition at line 64 of file SerialFrame.h.
|
inlineexplicit |
Construct from a Record struct.
Definition at line 68 of file SerialFrame.h.
|
inline |
Convert to a Record struct.
Definition at line 73 of file SerialFrame.h.
|
inline |
Field getter and setters.
Definition at line 84 of file SerialFrame.h.
|
inline |
Definition at line 85 of file SerialFrame.h.
|
inline |
Definition at line 87 of file SerialFrame.h.
|
inline |
Definition at line 88 of file SerialFrame.h.
|
inline |
Definition at line 90 of file SerialFrame.h.
|
inline |
Definition at line 91 of file SerialFrame.h.
|
inline |
Definition at line 93 of file SerialFrame.h.
|
inline |
Definition at line 94 of file SerialFrame.h.
|
inline |
Get the payload size.
Definition at line 97 of file SerialFrame.h.
|
inline |
Template method to serialize an object directly to this record's payload.
Definition at line 100 of file SerialFrame.h.
|
inline |
Template method to deserialize an object from this record's payload.
Definition at line 112 of file SerialFrame.h.
|
inline |
Boost serialization support.
Definition at line 120 of file SerialFrame.h.