#include <coherence/util/SerializationHelper.hpp>
Inherits Object.
Public Types | |
| typedef spec::Handle | Handle | 
| SerializationHelper Handle definition. | |
| typedef spec::View | View | 
| SerializationHelper View definition. | |
| typedef spec::Holder | Holder | 
| SerializationHelper Holder definition. | |
Static Public Member Functions | |
| static Binary::View | decorateBinary (Binary::View vBinValue, int32_t nDecoration) | 
| Decorate the specified Binary value with the specified integer decoration. | |
| static int32_t | extractIntDecoration (Binary::View vBin) | 
| Extract a decoration value from the specified Binary that contains an int decoration. | |
| static bool | isIntDecorated (Binary::View vBin) | 
| Check whether or not the specified Binary has an integer decoration. | |
| static Binary::View | removeIntDecoration (Binary::View vBin) | 
| Remove a decoration value from the specified Binary that contains a representation of an IntDecoratedObject. | |
| static Binary::View | toBinary (Object::View v, Serializer::View vSerializer) | 
| Serialize an object into its Binary form. | |
| static Object::Holder | fromBinary (Binary::View vBin, Serializer::View vSerializer) | 
| Deserialize an object from its Binary form. | |
Static Protected Attributes | |
| static const int32_t | deco_value | 
| Decoration: The original value (before being decorated). | |
| static const octet_t | fmt_bin_deco | 
| Serialization format: Decorated Binary value. | |
| static const octet_t | fmt_bin_ext_deco | 
| Serialization format: Extended-range Decorated Binary value. | |
| static const octet_t | fmt_ext | 
| Serialization format: A DefaultSerializer is NOT used. | |
| static const octet_t | fmt_ido | 
| Serialization format: Integer-decorated value. | |
Classes | |
| class | Stats | 
| Serialization statistics for a given user type. More... | |
| static Binary::View decorateBinary | ( | Binary::View | vBinValue, | |
| int32_t | nDecoration | |||
| ) |  [static] | 
        
| static int32_t extractIntDecoration | ( | Binary::View | vBin | ) |  [static] | 
        
| static bool isIntDecorated | ( | Binary::View | vBin | ) |  [static] | 
        
| static Binary::View removeIntDecoration | ( | Binary::View | vBin | ) |  [static] | 
        
| static Binary::View toBinary | ( | Object::View | v, | |
| Serializer::View | vSerializer | |||
| ) |  [static] | 
        
| static Object::Holder fromBinary | ( | Binary::View | vBin, | |
| Serializer::View | vSerializer | |||
| ) |  [static] | 
        
const octet_t fmt_bin_deco [static, protected]           | 
        
Serialization format: Decorated Binary value.
Structure is:
byte 0 : format identifier (18) byte 1 : bit mask of decoration identifiers (see DECO_* constants) byte 2 : packed int specifying the length of the first decoration byte next : binary data ...For each decoration, there is a packed int for its length, followed by its binary data. The first decoration is the decorated value itself, if present.
Note: fmt_ido cannot be combined with fmt_bin_deco.
const octet_t fmt_bin_ext_deco [static, protected]           | 
        
Serialization format: Extended-range Decorated Binary value.
Structure is:
 byte 0    : format identifier (19)
 byte 1    : bit mask of decoration identifiers (see DECO_* constants),
             in the packed long format (1-10 bytes)
 byte next : packed int specifying the length of the first decoration
 byte next : binary data
 ...
  For each decoration, there is a packed int for its length, followed by its binary data. The first decoration is the decorated value itself, if present.Note: fmt_ido cannot be combined with fmt_bin_ext_deco.