diff -r ce66d7e374bf -r 42bb29924218 sources/mystring.cpp --- 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& bytes) +{ + return String(reinterpret_cast&>(bytes)); +} + +/*! * \returns the MD5-checksum of this string. */ String String::md5() const