X-Git-Url: https://git.llucax.com/z.facultad/75.52/treemulator.git/blobdiff_plain/031fcd433e233cf31c4ee732883940d9b8c8165a..e95ed4d2f8ae92b0044c6dc562fd5c7082a0677d:/src/clave_fija.cpp 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; }