19 #include "TCSerializer.hpp"
27 this->_message = NULL;
31 this->_message = block;
35 this->_message = NULL;
39 this->_message = block;
45 this->Serialize(&cache);
50 std::string cache(buffer);
51 this->Deserialize(&cache);
55 if(this->_message == NULL)
59 this->Serialize(&cache);
60 if(bsize <= cache.size())
63 memset(buffer, 0, bsize *
sizeof(
char));
64 strcpy(buffer, cache.c_str());
69 if(this->_message == NULL)
72 std::string cache(buffer);
73 this->Deserialize(&cache);