--- a/sources/mystring.cpp Wed Jul 20 18:31:19 2016 +0300 +++ b/sources/mystring.cpp Fri Jul 22 17:59:55 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 ByteArray& bytes) +{ + return String(reinterpret_cast<const Vector<char>&>(bytes)); +} + +/*! * \returns the MD5-checksum of this string. */ String String::md5() const