qTox
Version: nightly | Commit: bc751c8e1cac455f9690654fcfe0f560d2d7dfdd
|
Go to the documentation of this file.
58 assert(length <= INT_MAX);
59 string = QByteArray(
reinterpret_cast<const char*
>(text), length);
68 return reinterpret_cast<const uint8_t*
>(
string.constData());
86 return QString::fromUtf8(
string);
95 return QByteArray(
string);
QString getQString() const
Gets the string as QString.
QByteArray getBytes() const
getBytes Gets the bytes of the string.
Helper to convert safely between strings in the c-toxcore representation and QString.
size_t size() const
Get the number of bytes in the string.
ToxString(const QString &text)
Creates a ToxString from a QString.
const uint8_t * data() const
Returns a pointer to the beginning of the string data.