--- a/sources/mystring.cpp Wed Jul 20 22:56:16 2016 +0300 +++ b/sources/mystring.cpp Fri Jul 22 17:50:00 2016 +0300 @@ -561,6 +561,16 @@ } /*! + * \brief Constructs a string from a vector of bytes. The bytes do not have to be null-terminated. + * \param bytes Bytes to use for construction + * \returns the resulting string. + */ +String String::fromBytes(const Vector<unsigned char>& bytes) +{ + return String(reinterpret_cast<const Vector<char>&>(bytes)); +} + +/*! * \returns the MD5-checksum of this string. */ String String::md5() const