uchar *ClaveFija::ToRaw (uint &size) const
{
- size = Size ();
- return ToArray ();
+ std::stringstream ss;
+
+ ss << "[";
+ ss << data;
+ ss << "]";
+ ss << "[";
+ ss << block_data;
+ ss << "]";
+
+ std::string s = ss.str ();
+
+ uchar *out = new uchar[s.size ()];
+ memcpy (out, s.c_str (), s.size ());
+
+ size = s.size ();
+ return out;
}