#include "MarshaledG4String.h"
Definition at line 23 of file MarshaledG4String.h.
MarshaledG4String::MarshaledG4String |
( |
G4String * |
objptr | ) |
|
|
inline |
Definition at line 32 of file MarshaledG4String.h.
33 msh_isUnmarshalDone =
false;
ShadowedMarshaledG4String * Shadowed_param
MarshaledG4String::MarshaledG4String |
( |
void * |
buf, |
|
|
char |
isUnmarshaling = 'u' |
|
) |
| |
|
inline |
Definition at line 42 of file MarshaledG4String.h.
43 : MarshaledObj(buf, isUnmarshaling) {
44 msh_isUnmarshalDone =
false;
MarshaledG4String::~MarshaledG4String |
( |
| ) |
|
|
inline |
MarshaledG4String::MarshaledG4String |
( |
G4String * |
objptr | ) |
|
|
inline |
Definition at line 32 of file MarshaledG4String.h.
33 msh_isUnmarshalDone =
false;
ShadowedMarshaledG4String * Shadowed_param
MarshaledG4String::MarshaledG4String |
( |
void * |
buf, |
|
|
char |
isUnmarshaling = 'u' |
|
) |
| |
|
inline |
Definition at line 42 of file MarshaledG4String.h.
43 : MarshaledObj(buf, isUnmarshaling) {
44 msh_isUnmarshalDone =
false;
MarshaledG4String::~MarshaledG4String |
( |
| ) |
|
|
inline |
void MarshaledG4String::marshal1 |
( |
| ) |
|
|
inline |
Definition at line 84 of file MarshaledG4String.h.
References util::size(), and tmp.
86 int msh_currentSize = 0;
88 throw "Tried to marshal in obj marked isUnmarshaling == true";
94 msh_currentSize =
size;
98 EXTEND_BUFFER(msh_currentSize +
sizeof(
int) +
sizeof(
int));
100 msh_field_begin = msh_cursor;
103 msh_cursor +=
sizeof(int);
107 memcpy(msh_cursor,
param->c_str(),
param->size());
108 *(msh_cursor+
param->size()) =
'\0';
112 msh_cursor += msh_currentSize;
115 tmp = (msh_cursor-msh_field_begin) -
sizeof(
int);
116 memcpy(msh_field_begin, &tmp,
sizeof(
int));
119 msh_size = msh_cursor - msh_buffer;
120 MSH_SET_TOTALSIZE(msh_size); MSH_SET_TYPECHOICE(msh_typechoice);
decltype(auto) constexpr size(T &&obj)
ADL-aware version of std::size.
void MarshaledG4String::marshal1 |
( |
| ) |
|
|
inline |
Definition at line 84 of file MarshaledG4String.h.
References util::size(), and tmp.
86 int msh_currentSize = 0;
88 throw "Tried to marshal in obj marked isUnmarshaling == true";
94 msh_currentSize =
size;
98 EXTEND_BUFFER(msh_currentSize +
sizeof(
int) +
sizeof(
int));
100 msh_field_begin = msh_cursor;
103 msh_cursor +=
sizeof(int);
107 memcpy(msh_cursor,
param->c_str(),
param->size());
108 *(msh_cursor+
param->size()) =
'\0';
112 msh_cursor += msh_currentSize;
115 tmp = (msh_cursor-msh_field_begin) -
sizeof(
int);
116 memcpy(msh_field_begin, &tmp,
sizeof(
int));
119 msh_size = msh_cursor - msh_buffer;
120 MSH_SET_TOTALSIZE(msh_size); MSH_SET_TYPECHOICE(msh_typechoice);
decltype(auto) constexpr size(T &&obj)
ADL-aware version of std::size.
G4String* MarshaledG4String::unmarshal |
( |
| ) |
|
|
inline |
Definition at line 53 of file MarshaledG4String.h.
55 if(msh_size <= MSH_HEADER_SIZE) {
64 this->msh_isUnmarshalDone =
true;
ShadowedMarshaledG4String * Shadowed_param
G4String* MarshaledG4String::unmarshal |
( |
| ) |
|
|
inline |
Definition at line 53 of file MarshaledG4String.h.
55 if(msh_size <= MSH_HEADER_SIZE) {
64 this->msh_isUnmarshalDone =
true;
ShadowedMarshaledG4String * Shadowed_param
void MarshaledG4String::unmarshal1 |
( |
| ) |
|
|
inline |
Definition at line 123 of file MarshaledG4String.h.
125 int msh_currentSize = 0;
127 memcpy(&msh_currentSize, msh_cursor,
sizeof(
int));
128 msh_cursor +=
sizeof(int);
135 msh_cursor += msh_currentSize;
void MarshaledG4String::unmarshal1 |
( |
| ) |
|
|
inline |
Definition at line 123 of file MarshaledG4String.h.
125 int msh_currentSize = 0;
127 memcpy(&msh_currentSize, msh_cursor,
sizeof(
int));
128 msh_cursor +=
sizeof(int);
135 msh_cursor += msh_currentSize;
void MarshaledG4String::unmarshalTo |
( |
G4String * |
obj | ) |
|
|
inline |
Definition at line 70 of file MarshaledG4String.h.
72 if(msh_size <= MSH_HEADER_SIZE) {
79 this->msh_isUnmarshalDone =
true;
ShadowedMarshaledG4String * Shadowed_param
void MarshaledG4String::unmarshalTo |
( |
G4String * |
obj | ) |
|
|
inline |
The documentation for this class was generated from the following file: