X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fcodec.h;fp=source%2Fcodec.h;h=e8b172eb5af068004d6ad051642ced663a2b9608;hp=d3737400803b700a8dd325cf5283e9adb660422d;hb=0ac97daad8d24f6762e1b870fec782c7aace695a;hpb=7735d609f5ecc2ae924d82c1395f028df9cfabd9 diff --git a/source/codec.h b/source/codec.h index d373740..e8b172e 100644 --- a/source/codec.h +++ b/source/codec.h @@ -79,6 +79,8 @@ public: */ virtual void encode(const ustring &str, std::string &buf); + std::string encode(const ustring &); + /** Procuces a sequence of bytes that will bring the encoder back to the initial state. @@ -143,6 +145,8 @@ public: */ virtual void decode(const std::string &str, ustring &buf); + ustring decode(const std::string &); + /** Resets the decoder to the initial state. */