X-Git-Url: https://git.llucax.com/z.facultad/75.52/treemulator.git/blobdiff_plain/59b7476481f01388fcfd13492adbba7ef841755c..f4eaa9c2418b7084cb973100495fb8290e1c4075:/src/clave_fija.cpp?ds=inline diff --git a/src/clave_fija.cpp b/src/clave_fija.cpp index 71f6f0d..d947e2a 100644 --- a/src/clave_fija.cpp +++ b/src/clave_fija.cpp @@ -46,7 +46,21 @@ bool ClaveFija::operator == (const Clave &c) const 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; }