int GetTableFromRtsResponseMessage::deserialize(common::Stream& input)
 {
   int32_t iret = input.get_int64(&version_);
   if (common::TFS_SUCCESS == iret)
   {
     iret = input.get_int64(&length_);
   }
   if (common::TFS_SUCCESS == iret)
   {
     iret = input.get_bytes(tables_, length_);
   }
   return iret;
 }
Beispiel #2
0
 int RespListBitMapMessage::deserialize(common::Stream& input)
 {
   int32_t ret = input.get_int32(reinterpret_cast<int32_t*> (&uuse_len_));
   if (common::TFS_SUCCESS == ret)
   {
     input.get_int32(reinterpret_cast<int32_t*> (&ubitmap_len_));
   }
   if (common::TFS_SUCCESS == ret
     && ubitmap_len_ > 0)
   {
     char* data = alloc_data(ubitmap_len_);
     ret = NULL != data ? common::TFS_SUCCESS : common::TFS_ERROR;
     if (common::TFS_SUCCESS == ret)
     {
       ret = input.get_bytes(data, ubitmap_len_);
     }
   }
   return ret;
 }