X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcodec.h;h=e8b172eb5af068004d6ad051642ced663a2b9608;hb=a0a5c796a6ec11a13c49912672a82bf1857bbc71;hp=d3737400803b700a8dd325cf5283e9adb660422d;hpb=271ffa9434c8d9397bb5170cf1ee670c5265ec60;p=libs%2Fcore.git 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. */