24 #include "xml_common.h" 34 classdesc::pack_t
decode(
const classdesc::CDATA& data)
38 if (!isspace(c)) trimmed+=c;
42 replace(trimmed.begin(),trimmed.end(),
'~',
']');
47 return std::move(zs.output);
53 vector<unsigned char> zbuf(buf.size());
58 a85::to_a85(zbuf.data(),zs.total_out, cbuf.data(),
false);
60 replace(cbuf.begin(),cbuf.end(),
']',
'~');
61 return CDATA(cbuf.begin(),cbuf.end());
int size_for_bin(int textlen)
classdesc::pack_t decode(const classdesc::CDATA &data)
decode ascii-encoded representation to binary data
void to_a85(const u8 *data, int binlen, char *text, bool append_null)
void from_a85(const char *text, int textlen, u8 *data)
Creation and access to the minskyTCL_obj object, which has code to record whenever Minsky's state cha...
CDATA encode(const pack_t &buf)
int size_for_a85(int binlen, bool append_null)