<class name="QByteArray" doc="/**
&lt;p&gt;The &lt;a href=&quot;QByteArray.html#QByteArray()&quot;&gt;&lt;tt&gt;QByteArray&lt;/tt&gt;&lt;/a&gt; class provides an array of bytes.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QByteArray.html#QByteArray()&quot;&gt;&lt;tt&gt;QByteArray&lt;/tt&gt;&lt;/a&gt; can be used to store both raw bytes (including '\0's) and traditional 8-bit '\0'-terminated strings. Using &lt;a href=&quot;QByteArray.html#QByteArray()&quot;&gt;&lt;tt&gt;QByteArray&lt;/tt&gt;&lt;/a&gt; is much more convenient than using &lt;tt&gt;const char *&lt;/tt&gt;. Behind the scenes, it always ensures that the data is followed by a '\0' terminator, and uses implicit sharing&lt;/tt&gt; (copy-on-write) to reduce memory usage and avoid needless copying of data.&lt;/p&gt;
&lt;p&gt;In addition to &lt;a href=&quot;QByteArray.html#QByteArray()&quot;&gt;&lt;tt&gt;QByteArray&lt;/tt&gt;&lt;/a&gt;, Qt also provides the &lt;a href=&quot;%2E%2E/porting4.html#qstring&quot;&gt;&lt;tt&gt;QString&lt;/tt&gt;&lt;/a&gt; class to store string data. For most purposes, &lt;a href=&quot;%2E%2E/porting4.html#qstring&quot;&gt;&lt;tt&gt;QString&lt;/tt&gt;&lt;/a&gt; is the class you want to use. It stores 16-bit Unicode characters, making it easy to store non-ASCII/non-Latin-1 characters in your application. Furthermore, &lt;a href=&quot;%2E%2E/porting4.html#qstring&quot;&gt;&lt;tt&gt;QString&lt;/tt&gt;&lt;/a&gt; is used throughout in the Qt API. The two main cases where &lt;a href=&quot;QByteArray.html#QByteArray()&quot;&gt;&lt;tt&gt;QByteArray&lt;/tt&gt;&lt;/a&gt; is appropriate are when you need to store raw binary data, and when memory conservation is critical (e.g&amp;#x2e; with Qtopia Core).&lt;/p&gt;
&lt;p&gt;One way to initialize a &lt;a href=&quot;QByteArray.html#QByteArray()&quot;&gt;&lt;tt&gt;QByteArray&lt;/tt&gt;&lt;/a&gt; is simply to pass a &lt;tt&gt;const char *&lt;/tt&gt; to its constructor. For example, the following code creates a byte array of size 5 containing the data &amp;quot;Hello&amp;quot;:&lt;/p&gt;
&lt;pre&gt;    QByteArray ba(&amp;quot;Hello&amp;quot;);&lt;/pre&gt;
&lt;p&gt;Although the &lt;a href=&quot;QByteArray.html#size()&quot;&gt;&lt;tt&gt;size&lt;/tt&gt;&lt;/a&gt; is 5, the byte array also maintains an extra '\0' character at the end so that if a function is used that asks for a pointer to the underlying data (e.g&amp;#x2e; a call to &lt;a href=&quot;QByteArray.html#data()&quot;&gt;&lt;tt&gt;data&lt;/tt&gt;&lt;/a&gt;), the data pointed to is guaranteed to be '\0'-terminated.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QByteArray.html#QByteArray()&quot;&gt;&lt;tt&gt;QByteArray&lt;/tt&gt;&lt;/a&gt; makes a deep copy of the &lt;tt&gt;const char *&lt;/tt&gt; data, so you can modify it later without experiencing side effects. (If for performance reasons you don't want to take a deep copy of the character data, use QByteArray::fromRawData() instead.)&lt;/p&gt;
&lt;p&gt;Another approach is to set the size of the array using &lt;a href=&quot;QByteArray.html#resize(int)&quot;&gt;&lt;tt&gt;resize&lt;/tt&gt;&lt;/a&gt; and to initialize the data byte per byte. &lt;a href=&quot;QByteArray.html#QByteArray()&quot;&gt;&lt;tt&gt;QByteArray&lt;/tt&gt;&lt;/a&gt; uses 0-based indexes, just like C++ arrays. To access the byte at a particular index position, you can use operator[](). On non-const byte arrays, operator[]() returns a reference to a byte that can be used on the left side of an assignment. For example:&lt;/p&gt;
&lt;pre&gt;    QByteArray ba;
    ba.resize(5);
    ba[0] = 0x3c;
    ba[1] = 0xb8;
    ba[2] = 0x64;
    ba[3] = 0x18;
    ba[4] = 0xca;&lt;/pre&gt;
&lt;p&gt;For read-only access, an alternative syntax is to use &lt;a href=&quot;QByteArray.html#at(int)&quot;&gt;&lt;tt&gt;at&lt;/tt&gt;&lt;/a&gt;:&lt;/p&gt;
&lt;pre&gt;    for (int i = 0; i &amp;lt; ba.size(); ++i) {
        if (ba.at(i) &amp;gt;= 'a' &amp;amp;&amp;amp; ba.at(i) &amp;lt;= 'f')
            cout &amp;lt;&amp;lt; &amp;quot;Found character in range [a-f]&amp;quot; &amp;lt;&amp;lt; endl;
    }&lt;/pre&gt;
&lt;p&gt;&lt;a href=&quot;QByteArray.html#at(int)&quot;&gt;&lt;tt&gt;at&lt;/tt&gt;&lt;/a&gt; can be faster than operator[](), because it never causes a deep copy&lt;/tt&gt; to occur.&lt;/p&gt;
&lt;p&gt;To extract many bytes at a time, use &lt;a href=&quot;QByteArray.html#left(int)&quot;&gt;&lt;tt&gt;left&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QByteArray.html#right(int)&quot;&gt;&lt;tt&gt;right&lt;/tt&gt;&lt;/a&gt;, or &lt;a href=&quot;QByteArray.html#mid(int, int)&quot;&gt;&lt;tt&gt;mid&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;A &lt;a href=&quot;QByteArray.html#QByteArray()&quot;&gt;&lt;tt&gt;QByteArray&lt;/tt&gt;&lt;/a&gt; can embed '\0' bytes. The &lt;a href=&quot;QByteArray.html#size()&quot;&gt;&lt;tt&gt;size&lt;/tt&gt;&lt;/a&gt; function always returns the size of the whole array, including embedded '\0' bytes. If you want to obtain the length of the data up to and excluding the first '\0' character, call qstrlen() on the byte array.&lt;/p&gt;
&lt;p&gt;After a call to &lt;a href=&quot;QByteArray.html#resize(int)&quot;&gt;&lt;tt&gt;resize&lt;/tt&gt;&lt;/a&gt;, newly allocated bytes have undefined values. To set all the bytes to a particular value, call fill().&lt;/p&gt;
&lt;p&gt;To obtain a pointer to the actual character data, call &lt;a href=&quot;QByteArray.html#data()&quot;&gt;&lt;tt&gt;data&lt;/tt&gt;&lt;/a&gt; or constData(). These functions return a pointer to the beginning of the data. The pointer is guaranteed to remain valid until a non-const function is called on the &lt;a href=&quot;QByteArray.html#QByteArray()&quot;&gt;&lt;tt&gt;QByteArray&lt;/tt&gt;&lt;/a&gt;. It is also guaranteed that the data ends with a '\0' byte. This '\0' byte is automatically provided by &lt;a href=&quot;QByteArray.html#QByteArray()&quot;&gt;&lt;tt&gt;QByteArray&lt;/tt&gt;&lt;/a&gt; and is not counted in &lt;a href=&quot;QByteArray.html#size()&quot;&gt;&lt;tt&gt;size&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QByteArray.html#QByteArray()&quot;&gt;&lt;tt&gt;QByteArray&lt;/tt&gt;&lt;/a&gt; provides the following basic functions for modifying the byte data: append(), prepend(), insert(), &lt;a href=&quot;%2E%2E/qtjambi-typesystem.html#replace&quot;&gt;&lt;tt&gt;replace&lt;/tt&gt;&lt;/a&gt;, and &lt;a href=&quot;%2E%2E/qtjambi-typesystem.html#remove&quot;&gt;&lt;tt&gt;remove&lt;/tt&gt;&lt;/a&gt;. For example:&lt;/p&gt;
&lt;pre&gt;    QByteArray x(&amp;quot;and&amp;quot;);
    x.prepend(&amp;quot;rock &amp;quot;);         &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; x == &amp;quot;rock and&amp;quot;
    x.append(&amp;quot; roll&amp;quot;);          &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; x == &amp;quot;rock and roll&amp;quot;
    x.replace(5, 3, &amp;quot;&amp;amp;&amp;quot;);       &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; x == &amp;quot;rock &amp;amp; roll&amp;quot;&lt;/pre&gt;
&lt;p&gt;The &lt;a href=&quot;%2E%2E/qtjambi-typesystem.html#replace&quot;&gt;&lt;tt&gt;replace&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;%2E%2E/qtjambi-typesystem.html#remove&quot;&gt;&lt;tt&gt;remove&lt;/tt&gt;&lt;/a&gt; functions' first two arguments are the position from which to start erasing and the number of bytes that should be erased.&lt;/p&gt;
&lt;p&gt;When you append() data to a non-empty array, the array will be reallocated and the new data copied to it. You can avoid this behavior by calling &lt;a href=&quot;QByteArray.html#reserve(int)&quot;&gt;&lt;tt&gt;reserve&lt;/tt&gt;&lt;/a&gt;, which preallocates a certain amount of memory. You can also call &lt;a href=&quot;QByteArray.html#capacity()&quot;&gt;&lt;tt&gt;capacity&lt;/tt&gt;&lt;/a&gt; to find out how much memory &lt;a href=&quot;QByteArray.html#QByteArray()&quot;&gt;&lt;tt&gt;QByteArray&lt;/tt&gt;&lt;/a&gt; actually allocated. Data appended to an empty array is not copied.&lt;/p&gt;
&lt;p&gt;A frequent requirement is to remove whitespace characters from a byte array ('\n', '\t', ' ', etc.)&amp;#x2e; If you want to remove whitespace from both ends of a &lt;a href=&quot;QByteArray.html#QByteArray()&quot;&gt;&lt;tt&gt;QByteArray&lt;/tt&gt;&lt;/a&gt;, use &lt;a href=&quot;QByteArray.html#trimmed()&quot;&gt;&lt;tt&gt;trimmed&lt;/tt&gt;&lt;/a&gt;. If you want to remove whitespace from both ends and replace multiple consecutive whitespaces with a single space character within the byte array, use &lt;a href=&quot;QByteArray.html#simplified()&quot;&gt;&lt;tt&gt;simplified&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If you want to find all occurrences of a particular character or substring in a &lt;a href=&quot;QByteArray.html#QByteArray()&quot;&gt;&lt;tt&gt;QByteArray&lt;/tt&gt;&lt;/a&gt;, use &lt;a href=&quot;QByteArray.html#indexOf(java.lang.String, int)&quot;&gt;&lt;tt&gt;indexOf&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QByteArray.html#lastIndexOf(com.trolltech.qt.core.QByteArray, int)&quot;&gt;&lt;tt&gt;lastIndexOf&lt;/tt&gt;&lt;/a&gt;. The former searches forward starting from a given index position, the latter searches backward. Both return the index position of the character or substring if they find it; otherwise, they return -1. For example, here's a typical loop that finds all occurrences of a particular substring:&lt;/p&gt;
&lt;pre&gt;    QByteArray ba(&amp;quot;We must be &amp;lt;b&amp;gt;bold&amp;lt;/b&amp;gt;, very &amp;lt;b&amp;gt;bold&amp;lt;/b&amp;gt;&amp;quot;);
    int j = 0;
    while ((j = ba.indexOf(&amp;quot;&amp;lt;b&amp;gt;&amp;quot;, j)) != -1) {
        cout &amp;lt;&amp;lt; &amp;quot;Found &amp;lt;b&amp;gt; tag at index position &amp;quot; &amp;lt;&amp;lt; j &amp;lt;&amp;lt; endl;
        ++j;
    }&lt;/pre&gt;
&lt;p&gt;If you simply want to check whether a &lt;a href=&quot;QByteArray.html#QByteArray()&quot;&gt;&lt;tt&gt;QByteArray&lt;/tt&gt;&lt;/a&gt; contains a particular character or substring, use &lt;a href=&quot;QByteArray.html#contains(com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;contains&lt;/tt&gt;&lt;/a&gt;. If you want to find out how many times a particular character or substring occurs in the byte array, use &lt;a href=&quot;QByteArray.html#count(com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;count&lt;/tt&gt;&lt;/a&gt;. If you want to replace all occurrences of a particular value with another, use one of the two-parameter &lt;a href=&quot;%2E%2E/qtjambi-typesystem.html#replace&quot;&gt;&lt;tt&gt;replace&lt;/tt&gt;&lt;/a&gt; overloads.&lt;/p&gt;
&lt;p&gt;QByteArrays can be compared using overloaded operators such as operator&amp;lt;(), operator&amp;lt;=(), operator==(), operator&amp;gt;=(), and so on. The comparison is based exclusively on the numeric values of the characters and is very fast, but is not what a human would expect. QString::localeAwareCompare() is a better choice for sorting user-interface strings.&lt;/p&gt;
&lt;p&gt;For historical reasons, &lt;a href=&quot;QByteArray.html#QByteArray()&quot;&gt;&lt;tt&gt;QByteArray&lt;/tt&gt;&lt;/a&gt; distinguishes between a null byte array and an empty byte array. A &lt;i&gt;null&lt;/i&gt; byte array is a byte array that is initialized using &lt;a href=&quot;QByteArray.html#QByteArray()&quot;&gt;&lt;tt&gt;QByteArray&lt;/tt&gt;&lt;/a&gt;'s default constructor or by passing (const char *)0 to the constructor. An &lt;i&gt;empty&lt;/i&gt; byte array is any byte array with size 0. A null byte array is always empty, but an empty byte array isn't necessarily null:&lt;/p&gt;
&lt;pre&gt;    QByteArray().isNull();          &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; returns true
    QByteArray().isEmpty();         &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; returns true

    QByteArray(&amp;quot;&amp;quot;).isNull();        &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; returns false
    QByteArray(&amp;quot;&amp;quot;).isEmpty();       &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; returns true

    QByteArray(&amp;quot;abc&amp;quot;).isNull();     &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; returns false
    QByteArray(&amp;quot;abc&amp;quot;).isEmpty();    &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; returns false&lt;/pre&gt;
&lt;p&gt;All functions except &lt;a href=&quot;QByteArray.html#isNull()&quot;&gt;&lt;tt&gt;isNull&lt;/tt&gt;&lt;/a&gt; treat null byte arrays the same as empty byte arrays. For example, &lt;a href=&quot;QByteArray.html#data()&quot;&gt;&lt;tt&gt;data&lt;/tt&gt;&lt;/a&gt; returns a pointer to a '\0' character for a null byte array (&lt;i&gt;not&lt;/i&gt; a null pointer), and &lt;a href=&quot;QByteArray.html#QByteArray()&quot;&gt;&lt;tt&gt;QByteArray&lt;/tt&gt;&lt;/a&gt; compares equal to &lt;a href=&quot;QByteArray.html#QByteArray()&quot;&gt;&lt;tt&gt;QByteArray&lt;/tt&gt;&lt;/a&gt;(&amp;quot;&amp;quot;). We recommend that you always use &lt;a href=&quot;QByteArray.html#isEmpty()&quot;&gt;&lt;tt&gt;isEmpty&lt;/tt&gt;&lt;/a&gt; and avoid &lt;a href=&quot;QByteArray.html#isNull()&quot;&gt;&lt;tt&gt;isNull&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;a name=&quot;note-on-8-bit-character-comparisons&quot;&gt;&lt;/a&gt;
&lt;h3&gt;Note on 8-bit Character Comparisons&lt;/h3&gt;
&lt;p&gt;In &lt;a href=&quot;QByteArray.html#QByteArray()&quot;&gt;&lt;tt&gt;QByteArray&lt;/tt&gt;&lt;/a&gt;, the notion of uppercase and lowercase and of which character is greater than or less than another character is locale dependent. This affects functions that support a case insensitive option or that compare or lowercase or uppercase their arguments. Case insensitive operations and comparisons will be accurate if both strings contain only ASCII characters. (If &lt;tt&gt;$LC_CTYPE&lt;/tt&gt; is set, most Unix systems do &amp;quot;the right thing&amp;quot;.) Functions that this affects include &lt;a href=&quot;QByteArray.html#contains(com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;contains&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QByteArray.html#indexOf(java.lang.String, int)&quot;&gt;&lt;tt&gt;indexOf&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QByteArray.html#lastIndexOf(com.trolltech.qt.core.QByteArray, int)&quot;&gt;&lt;tt&gt;lastIndexOf&lt;/tt&gt;&lt;/a&gt;, operator&amp;lt;(), operator&amp;lt;=(), operator&amp;gt;(), operator&amp;gt;=(), &lt;a href=&quot;QByteArray.html#toLower()&quot;&gt;&lt;tt&gt;toLower&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QByteArray.html#toUpper()&quot;&gt;&lt;tt&gt;toUpper&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;This issue does not apply to QStrings since they represent characters using Unicode.&lt;/p&gt;

@see &lt;a href=&quot;%2E%2E/porting4.html#qstring&quot;&gt;&lt;tt&gt;QString&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QBitArray.html&quot;&gt;&lt;tt&gt;QBitArray&lt;/tt&gt;&lt;/a&gt; */">
    <method name="public QByteArray(com.trolltech.qt.core.QByteArray arg__1)" doc="/**
&lt;p&gt;Constructs a copy of &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;This operation takes constant time&lt;/tt&gt;, because &lt;a href=&quot;QByteArray.html#QByteArray()&quot;&gt;&lt;tt&gt;QByteArray&lt;/tt&gt;&lt;/a&gt; is implicitly shared&lt;/tt&gt;. This makes returning a &lt;a href=&quot;QByteArray.html#QByteArray()&quot;&gt;&lt;tt&gt;QByteArray&lt;/tt&gt;&lt;/a&gt; from a function very fast. If a shared instance is modified, it will be copied (copy-on-write), and that takes linear time&lt;/tt&gt;.&lt;/p&gt;

@see &lt;tt&gt;operator=&lt;/tt&gt; */"/>
    <method name="public QByteArray(int size, byte c)" doc="/**
&lt;p&gt;Constructs a byte array of size &lt;tt&gt;size&lt;/tt&gt; with every byte set to character &lt;tt&gt;c&lt;/tt&gt;.&lt;/p&gt;

@see &lt;tt&gt;fill&lt;/tt&gt; */"/>
    <method name="public QByteArray()" doc="/**
&lt;p&gt;Constructs an empty byte array.&lt;/p&gt;

@see &lt;a href=&quot;QByteArray.html#isEmpty()&quot;&gt;&lt;tt&gt;isEmpty&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final byte at(int i)" doc="/**
&lt;p&gt;Returns the character at index position &lt;tt&gt;i&lt;/tt&gt; in the byte array.&lt;/p&gt;
&lt;p&gt;&lt;tt&gt;i&lt;/tt&gt; must be a valid index position in the byte array (i.e&amp;#x2e;, 0 &amp;lt;= &lt;tt&gt;i&lt;/tt&gt; &amp;lt; &lt;a href=&quot;QByteArray.html#size()&quot;&gt;&lt;tt&gt;size&lt;/tt&gt;&lt;/a&gt;).&lt;/p&gt;

@see &lt;tt&gt;operator[]&lt;/tt&gt; */"/>
    <method name="public final int capacity()" doc="/**
&lt;p&gt;Returns the maximum number of bytes that can be stored in the byte array without forcing a reallocation.&lt;/p&gt;
&lt;p&gt;The sole purpose of this function is to provide a means of fine tuning &lt;a href=&quot;QByteArray.html#QByteArray()&quot;&gt;&lt;tt&gt;QByteArray&lt;/tt&gt;&lt;/a&gt;'s memory usage. In general, you will rarely ever need to call this function. If you want to know how many bytes are in the byte array, call &lt;a href=&quot;QByteArray.html#size()&quot;&gt;&lt;tt&gt;size&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QByteArray.html#reserve(int)&quot;&gt;&lt;tt&gt;reserve&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QByteArray.html#squeeze()&quot;&gt;&lt;tt&gt;squeeze&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void chop(int n)" doc="/**
&lt;p&gt;Removes &lt;tt&gt;n&lt;/tt&gt; bytes from the end of the byte array.&lt;/p&gt;
&lt;p&gt;If &lt;tt&gt;n&lt;/tt&gt; is greater than &lt;a href=&quot;QByteArray.html#size()&quot;&gt;&lt;tt&gt;size&lt;/tt&gt;&lt;/a&gt;, the result is an empty byte array.&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;pre&gt;    QByteArray ba(&amp;quot;STARTTLS\r\n&amp;quot;);
    ba.chop(2);                 &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; ba == &amp;quot;STARTTLS&amp;quot;&lt;/pre&gt;

@see &lt;a href=&quot;QByteArray.html#truncate(int)&quot;&gt;&lt;tt&gt;truncate&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QByteArray.html#resize(int)&quot;&gt;&lt;tt&gt;resize&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QByteArray.html#left(int)&quot;&gt;&lt;tt&gt;left&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void clear()" doc="/**
&lt;p&gt;Clears the contents of the byte array and makes it empty.&lt;/p&gt;

@see &lt;a href=&quot;QByteArray.html#resize(int)&quot;&gt;&lt;tt&gt;resize&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QByteArray.html#isEmpty()&quot;&gt;&lt;tt&gt;isEmpty&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean contains(byte c)" doc="/**
&lt;p&gt;Returns true if the byte array contains the character &lt;tt&gt;c&lt;/tt&gt;; otherwise returns false.&lt;/p&gt;
 */"/>
    <method name="public final boolean contains(com.trolltech.qt.core.QByteArray a)" doc="/**
&lt;p&gt;Returns true if the byte array contains an occurrence of the byte array &lt;tt&gt;a&lt;/tt&gt;; otherwise returns false.&lt;/p&gt;

@see &lt;a href=&quot;QByteArray.html#indexOf(java.lang.String, int)&quot;&gt;&lt;tt&gt;indexOf&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QByteArray.html#count(com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;count&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int count(byte c)" doc="/**
&lt;p&gt;Returns the number of occurrences of character &lt;tt&gt;c&lt;/tt&gt; in the byte array.&lt;/p&gt;

@see &lt;a href=&quot;QByteArray.html#contains(com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;contains&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QByteArray.html#indexOf(java.lang.String, int)&quot;&gt;&lt;tt&gt;indexOf&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int count(com.trolltech.qt.core.QByteArray a)" doc="/**
&lt;p&gt;Returns the number of (potentially overlapping) occurrences of byte array &lt;tt&gt;a&lt;/tt&gt; in this byte array.&lt;/p&gt;

@see &lt;a href=&quot;QByteArray.html#contains(com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;contains&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QByteArray.html#indexOf(java.lang.String, int)&quot;&gt;&lt;tt&gt;indexOf&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.QNativePointer data()" doc="/**
&lt;p&gt;Returns a pointer to the data stored in the byte array. The pointer can be used to access and modify the bytes that compose the array. The data is '\0'-terminated.&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;pre&gt;    QByteArray ba(&amp;quot;Hello world&amp;quot;);
    char *data = ba.data();
    while (*data) {
        cout &amp;lt;&amp;lt; &amp;quot;[&amp;quot; &amp;lt;&amp;lt; *data &amp;lt;&amp;lt; &amp;quot;]&amp;quot; &amp;lt;&amp;lt; endl;
        ++data;
    }&lt;/pre&gt;
&lt;p&gt;The pointer remains valid as long as the byte array isn't reallocated. For read-only access, constData() is faster because it never causes a deep copy&lt;/tt&gt; to occur.&lt;/p&gt;
&lt;p&gt;This function is mostly useful to pass a byte array to a function that accepts a &lt;tt&gt;const char *&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;Note: A &lt;a href=&quot;QByteArray.html#QByteArray()&quot;&gt;&lt;tt&gt;QByteArray&lt;/tt&gt;&lt;/a&gt; can store any byte values including '\0's, but most functions that take &lt;tt&gt;char *&lt;/tt&gt; arguments assume that the data ends at the first '\0' they encounter.&lt;/p&gt;

@see &lt;tt&gt;constData&lt;/tt&gt;
@see &lt;tt&gt;operator[]&lt;/tt&gt; */"/>
    <method name="public final boolean endsWith(com.trolltech.qt.core.QByteArray a)" doc="/**
&lt;p&gt;Returns true if this byte array ends with byte array &lt;tt&gt;a&lt;/tt&gt;; otherwise returns false.&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;pre&gt;    QByteArray url(&amp;quot;http:&lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt;www.trolltech.com/index.html&amp;quot;);
    if (url.endsWith(&amp;quot;.html&amp;quot;))
        ...&lt;/pre&gt;

@see &lt;a href=&quot;QByteArray.html#startsWith(com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;startsWith&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QByteArray.html#right(int)&quot;&gt;&lt;tt&gt;right&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean endsWith(byte c)" doc="/**
&lt;p&gt;Returns true if this byte array ends with character &lt;tt&gt;c&lt;/tt&gt;; otherwise returns false.&lt;/p&gt;
 */"/>
    <method name="public final int indexOf(byte c, int from)" doc="/**
&lt;p&gt;Returns the index position of the first occurrence of the character &lt;tt&gt;c&lt;/tt&gt; in the byte array, searching forward from index position &lt;tt&gt;from&lt;/tt&gt;. Returns -1 if &lt;tt&gt;c&lt;/tt&gt; could not be found.&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;pre&gt;    QByteArray ba(&amp;quot;ABCBA&amp;quot;);
    ba.indexOf(&amp;quot;B&amp;quot;);            &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; returns 1
    ba.indexOf(&amp;quot;B&amp;quot;, 1);         &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; returns 1
    ba.indexOf(&amp;quot;B&amp;quot;, 2);         &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; returns 3
    ba.indexOf(&amp;quot;X&amp;quot;);            &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; returns -1&lt;/pre&gt;

@see &lt;a href=&quot;QByteArray.html#lastIndexOf(com.trolltech.qt.core.QByteArray, int)&quot;&gt;&lt;tt&gt;lastIndexOf&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QByteArray.html#contains(com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;contains&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int indexOf(byte c)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QByteArray.html#indexOf(java.lang.String, int)&quot;&gt;&lt;tt&gt;indexOf&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;c&lt;/tt&gt;, 0). */"/>
    <method name="public final int indexOf(com.trolltech.qt.core.QByteArray a, int from)" doc="/**
&lt;p&gt;Returns the index position of the first occurrence of the byte array &lt;tt&gt;a&lt;/tt&gt; in this byte array, searching forward from index position &lt;tt&gt;from&lt;/tt&gt;. Returns -1 if &lt;tt&gt;a&lt;/tt&gt; could not be found.&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;pre&gt;    QByteArray x(&amp;quot;sticky question&amp;quot;);
    QByteArray y(&amp;quot;sti&amp;quot;);
    x.indexOf(y);               &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; returns 0
    x.indexOf(y, 1);            &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; returns 10
    x.indexOf(y, 10);           &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; returns 10
    x.indexOf(y, 11);           &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; returns -1&lt;/pre&gt;

@see &lt;a href=&quot;QByteArray.html#lastIndexOf(com.trolltech.qt.core.QByteArray, int)&quot;&gt;&lt;tt&gt;lastIndexOf&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QByteArray.html#contains(com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;contains&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QByteArray.html#count(com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;count&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int indexOf(com.trolltech.qt.core.QByteArray a)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QByteArray.html#indexOf(java.lang.String, int)&quot;&gt;&lt;tt&gt;indexOf&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;a&lt;/tt&gt;, 0). */"/>
    <method name="public final int indexOf(java.lang.String s, int from)" doc="/**
&lt;p&gt;Returns the index position of the first occurrence of the string &lt;tt&gt;s&lt;/tt&gt; in the byte array, searching forward from index position &lt;tt&gt;from&lt;/tt&gt;. Returns -1 if &lt;tt&gt;s&lt;/tt&gt; could not be found.&lt;/p&gt;
&lt;p&gt;The Unicode data is converted into 8-bit characters using QString::toAscii().&lt;/p&gt;
&lt;p&gt;If the &lt;a href=&quot;%2E%2E/porting4.html#qstring&quot;&gt;&lt;tt&gt;QString&lt;/tt&gt;&lt;/a&gt; contains non-ASCII Unicode characters, using this function can lead to loss of information. You can disable this function by defining &lt;tt&gt;QT_NO_CAST_TO_ASCII&lt;/tt&gt; when you compile your applications. You then need to call QString::toAscii() (or QString::toLatin1() or QString::toUtf8() or QString::toLocal8Bit()) explicitly if you want to convert the data to &lt;tt&gt;const char *&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final int indexOf(java.lang.String s)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QByteArray.html#indexOf(java.lang.String, int)&quot;&gt;&lt;tt&gt;indexOf&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;s&lt;/tt&gt;, 0). */"/>
    <method name="public final boolean isEmpty()" doc="/**
&lt;p&gt;Returns true if the byte array has size 0; otherwise returns false.&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;pre&gt;    QByteArray().isEmpty();         &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; returns true
    QByteArray(&amp;quot;&amp;quot;).isEmpty();       &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; returns true
    QByteArray(&amp;quot;abc&amp;quot;).isEmpty();    &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; returns false&lt;/pre&gt;

@see &lt;a href=&quot;QByteArray.html#size()&quot;&gt;&lt;tt&gt;size&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean isNull()" doc="/**
&lt;p&gt;Returns true if this byte array is null; otherwise returns false.&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;pre&gt;    QByteArray().isNull();          &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; returns true
    QByteArray(&amp;quot;&amp;quot;).isNull();        &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; returns false
    QByteArray(&amp;quot;abc&amp;quot;).isNull();     &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; returns false&lt;/pre&gt;
&lt;p&gt;Qt makes a distinction between null byte arrays and empty byte arrays for historical reasons. For most applications, what matters is whether or not a byte array contains any data, and this can be determined using &lt;a href=&quot;QByteArray.html#isEmpty()&quot;&gt;&lt;tt&gt;isEmpty&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QByteArray.html#isEmpty()&quot;&gt;&lt;tt&gt;isEmpty&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int lastIndexOf(byte c, int from)" doc="/**
&lt;p&gt;Returns the index position of the last occurrence of character &lt;tt&gt;c&lt;/tt&gt; in the byte array, searching backward from index position &lt;tt&gt;from&lt;/tt&gt;. If &lt;tt&gt;from&lt;/tt&gt; is -1 (the default), the search starts at the last (&lt;a href=&quot;QByteArray.html#size()&quot;&gt;&lt;tt&gt;size&lt;/tt&gt;&lt;/a&gt; - 1) byte. Returns -1 if &lt;tt&gt;c&lt;/tt&gt; could not be found.&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;pre&gt;    QByteArray ba(&amp;quot;ABCBA&amp;quot;);
    ba.lastIndexOf(&amp;quot;B&amp;quot;);        &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; returns 3
    ba.lastIndexOf(&amp;quot;B&amp;quot;, 3);     &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; returns 3
    ba.lastIndexOf(&amp;quot;B&amp;quot;, 2);     &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; returns 1
    ba.lastIndexOf(&amp;quot;X&amp;quot;);        &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; returns -1&lt;/pre&gt;

@see &lt;a href=&quot;QByteArray.html#indexOf(java.lang.String, int)&quot;&gt;&lt;tt&gt;indexOf&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QByteArray.html#contains(com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;contains&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int lastIndexOf(byte c)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QByteArray.html#lastIndexOf(com.trolltech.qt.core.QByteArray, int)&quot;&gt;&lt;tt&gt;lastIndexOf&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;c&lt;/tt&gt;, -1). */"/>
    <method name="public final int lastIndexOf(java.lang.String s, int from)" doc="/**
&lt;p&gt;Returns the index position of the last occurrence of the string &lt;tt&gt;s&lt;/tt&gt; in the byte array, searching backward from index position &lt;tt&gt;from&lt;/tt&gt;. If &lt;tt&gt;from&lt;/tt&gt; is -1 (the default), the search starts at the last (&lt;a href=&quot;QByteArray.html#size()&quot;&gt;&lt;tt&gt;size&lt;/tt&gt;&lt;/a&gt; - 1) byte. Returns -1 if &lt;tt&gt;s&lt;/tt&gt; could not be found.&lt;/p&gt;
&lt;p&gt;The Unicode data is converted into 8-bit characters using QString::toAscii().&lt;/p&gt;
&lt;p&gt;If the &lt;a href=&quot;%2E%2E/porting4.html#qstring&quot;&gt;&lt;tt&gt;QString&lt;/tt&gt;&lt;/a&gt; contains non-ASCII Unicode characters, using this function can lead to loss of information. You can disable this function by defining &lt;tt&gt;QT_NO_CAST_TO_ASCII&lt;/tt&gt; when you compile your applications. You then need to call QString::toAscii() (or QString::toLatin1() or QString::toUtf8() or QString::toLocal8Bit()) explicitly if you want to convert the data to &lt;tt&gt;const char *&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final int lastIndexOf(java.lang.String s)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QByteArray.html#lastIndexOf(com.trolltech.qt.core.QByteArray, int)&quot;&gt;&lt;tt&gt;lastIndexOf&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;s&lt;/tt&gt;, -1). */"/>
    <method name="public final int lastIndexOf(com.trolltech.qt.core.QByteArray a, int from)" doc="/**
&lt;p&gt;Returns the index position of the last occurrence of the byte array &lt;tt&gt;a&lt;/tt&gt; in this byte array, searching backward from index position &lt;tt&gt;from&lt;/tt&gt;. If &lt;tt&gt;from&lt;/tt&gt; is -1 (the default), the search starts at the last byte. Returns -1 if &lt;tt&gt;a&lt;/tt&gt; could not be found.&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;pre&gt;    QByteArray x(&amp;quot;crazy azimuths&amp;quot;);
    QByteArray y(&amp;quot;azy&amp;quot;);
    x.lastIndexOf(y);           &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; returns 6
    x.lastIndexOf(y, 6);        &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; returns 6
    x.lastIndexOf(y, 5);        &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; returns 2
    x.lastIndexOf(y, 1);        &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; returns -1&lt;/pre&gt;

@see &lt;a href=&quot;QByteArray.html#indexOf(java.lang.String, int)&quot;&gt;&lt;tt&gt;indexOf&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QByteArray.html#contains(com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;contains&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QByteArray.html#count(com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;count&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int lastIndexOf(com.trolltech.qt.core.QByteArray a)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QByteArray.html#lastIndexOf(com.trolltech.qt.core.QByteArray, int)&quot;&gt;&lt;tt&gt;lastIndexOf&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;a&lt;/tt&gt;, -1). */"/>
    <method name="public final com.trolltech.qt.core.QByteArray left(int len)" doc="/**
&lt;p&gt;Returns a byte array that contains the leftmost &lt;tt&gt;len&lt;/tt&gt; bytes of this byte array.&lt;/p&gt;
&lt;p&gt;The entire byte array is returned if &lt;tt&gt;len&lt;/tt&gt; is greater than &lt;a href=&quot;QByteArray.html#size()&quot;&gt;&lt;tt&gt;size&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;pre&gt;    QByteArray x(&amp;quot;Pineapple&amp;quot;);
    QByteArray y = x.left(4);
&lt;span class=&quot;comment&quot;&gt;    //&lt;/span&gt; y == &amp;quot;Pine&amp;quot;&lt;/pre&gt;

@see &lt;a href=&quot;QByteArray.html#right(int)&quot;&gt;&lt;tt&gt;right&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QByteArray.html#mid(int, int)&quot;&gt;&lt;tt&gt;mid&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QByteArray.html#startsWith(com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;startsWith&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QByteArray.html#truncate(int)&quot;&gt;&lt;tt&gt;truncate&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QByteArray leftJustified(int width, byte fill, boolean truncate)" doc="/**
&lt;p&gt;Returns a byte array of size &lt;tt&gt;width&lt;/tt&gt; that contains this byte array padded by the &lt;tt&gt;fill&lt;/tt&gt; character.&lt;/p&gt;
&lt;p&gt;If &lt;tt&gt;truncate&lt;/tt&gt; is false and the &lt;a href=&quot;QByteArray.html#size()&quot;&gt;&lt;tt&gt;size&lt;/tt&gt;&lt;/a&gt; of the byte array is more than &lt;tt&gt;width&lt;/tt&gt;, then the returned byte array is a copy of this byte array.&lt;/p&gt;
&lt;p&gt;If &lt;tt&gt;truncate&lt;/tt&gt; is true and the &lt;a href=&quot;QByteArray.html#size()&quot;&gt;&lt;tt&gt;size&lt;/tt&gt;&lt;/a&gt; of the byte array is more than &lt;tt&gt;width&lt;/tt&gt;, then any bytes in a copy of the byte array after position &lt;tt&gt;width&lt;/tt&gt; are removed, and the copy is returned.&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;pre&gt;    QByteArray x(&amp;quot;apple&amp;quot;);
    QByteArray y = x.leftJustified(8, '.');   &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; y == &amp;quot;apple...&amp;quot;&lt;/pre&gt;

@see &lt;a href=&quot;QByteArray.html#rightJustified(int, byte, boolean)&quot;&gt;&lt;tt&gt;rightJustified&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QByteArray leftJustified(int width, byte fill)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QByteArray.html#leftJustified(int, byte, boolean)&quot;&gt;&lt;tt&gt;leftJustified&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;width&lt;/tt&gt;, &lt;tt&gt;fill&lt;/tt&gt;, false). */"/>
    <method name="public final com.trolltech.qt.core.QByteArray leftJustified(int width)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QByteArray.html#leftJustified(int, byte, boolean)&quot;&gt;&lt;tt&gt;leftJustified&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;width&lt;/tt&gt;, ' ', false). */"/>
    <method name="public final int length()" doc="/**
&lt;p&gt;Same as &lt;a href=&quot;QByteArray.html#size()&quot;&gt;&lt;tt&gt;size&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.core.QByteArray mid(int index, int len)" doc="/**
&lt;p&gt;Returns a byte array containing &lt;tt&gt;len&lt;/tt&gt; bytes from this byte array, starting at position &lt;tt&gt;index&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;If &lt;tt&gt;len&lt;/tt&gt; is -1 (the default), or &lt;tt&gt;index&lt;/tt&gt; + &lt;tt&gt;len&lt;/tt&gt; &amp;gt;= &lt;a href=&quot;QByteArray.html#size()&quot;&gt;&lt;tt&gt;size&lt;/tt&gt;&lt;/a&gt;, returns a byte array containing all bytes starting at position &lt;tt&gt;index&lt;/tt&gt; until the end of the byte array.&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;pre&gt;    QByteArray x(&amp;quot;Five pineapples&amp;quot;);
    QByteArray y = x.mid(5, 4);     &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; y == &amp;quot;pine&amp;quot;
    QByteArray z = x.mid(5);        &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; z == &amp;quot;pineapples&amp;quot;&lt;/pre&gt;

@see &lt;a href=&quot;QByteArray.html#left(int)&quot;&gt;&lt;tt&gt;left&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QByteArray.html#right(int)&quot;&gt;&lt;tt&gt;right&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QByteArray mid(int index)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QByteArray.html#mid(int, int)&quot;&gt;mid&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;index&lt;/tt&gt;, -1). */"/>
    <method name="public final void writeTo(com.trolltech.qt.core.QDataStream arg__1)"/>
    <method name="public final void readFrom(com.trolltech.qt.core.QDataStream arg__1)"/>
    <method name="public final void reserve(int size)" doc="/**
&lt;p&gt;Attempts to allocate memory for at least &lt;tt&gt;size&lt;/tt&gt; bytes. If you know in advance how large the byte array will be, you can call this function, and if you call &lt;a href=&quot;QByteArray.html#resize(int)&quot;&gt;&lt;tt&gt;resize&lt;/tt&gt;&lt;/a&gt; often you are likely to get better performance. If &lt;tt&gt;size&lt;/tt&gt; is an underestimate, the worst that will happen is that the &lt;a href=&quot;QByteArray.html#QByteArray()&quot;&gt;&lt;tt&gt;QByteArray&lt;/tt&gt;&lt;/a&gt; will be a bit slower.&lt;/p&gt;
&lt;p&gt;The sole purpose of this function is to provide a means of fine tuning &lt;a href=&quot;QByteArray.html#QByteArray()&quot;&gt;&lt;tt&gt;QByteArray&lt;/tt&gt;&lt;/a&gt;'s memory usage. In general, you will rarely ever need to call this function. If you want to change the size of the byte array, call &lt;a href=&quot;QByteArray.html#resize(int)&quot;&gt;&lt;tt&gt;resize&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QByteArray.html#squeeze()&quot;&gt;&lt;tt&gt;squeeze&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QByteArray.html#capacity()&quot;&gt;&lt;tt&gt;capacity&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void resize(int size)" doc="/**
&lt;p&gt;Sets the size of the byte array to &lt;tt&gt;size&lt;/tt&gt; bytes.&lt;/p&gt;
&lt;p&gt;If &lt;tt&gt;size&lt;/tt&gt; is greater than the current size, the byte array is extended to make it &lt;tt&gt;size&lt;/tt&gt; bytes with the extra bytes added to the end. The new bytes are uninitialized.&lt;/p&gt;
&lt;p&gt;If &lt;tt&gt;size&lt;/tt&gt; is less than the current size, bytes are removed from the end.&lt;/p&gt;

@see &lt;a href=&quot;QByteArray.html#size()&quot;&gt;&lt;tt&gt;size&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QByteArray right(int len)" doc="/**
&lt;p&gt;Returns a byte array that contains the rightmost &lt;tt&gt;len&lt;/tt&gt; bytes of this byte array.&lt;/p&gt;
&lt;p&gt;The entire byte array is returned if &lt;tt&gt;len&lt;/tt&gt; is greater than &lt;a href=&quot;QByteArray.html#size()&quot;&gt;&lt;tt&gt;size&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;pre&gt;    QByteArray x(&amp;quot;Pineapple&amp;quot;);
    QByteArray y = x.right(5);
&lt;span class=&quot;comment&quot;&gt;    //&lt;/span&gt; y == &amp;quot;apple&amp;quot;&lt;/pre&gt;

@see &lt;a href=&quot;QByteArray.html#endsWith(byte)&quot;&gt;&lt;tt&gt;endsWith&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QByteArray.html#left(int)&quot;&gt;&lt;tt&gt;left&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QByteArray.html#mid(int, int)&quot;&gt;&lt;tt&gt;mid&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QByteArray rightJustified(int width, byte fill, boolean truncate)" doc="/**
&lt;p&gt;Returns a byte array of size &lt;tt&gt;width&lt;/tt&gt; that contains the &lt;tt&gt;fill&lt;/tt&gt; character followed by this byte array.&lt;/p&gt;
&lt;p&gt;If &lt;tt&gt;truncate&lt;/tt&gt; is false and the size of the byte array is more than &lt;tt&gt;width&lt;/tt&gt;, then the returned byte array is a copy of this byte array.&lt;/p&gt;
&lt;p&gt;If &lt;tt&gt;truncate&lt;/tt&gt; is true and the size of the byte array is more than &lt;tt&gt;width&lt;/tt&gt;, then the resulting byte array is truncated at position &lt;tt&gt;width&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;pre&gt;    QByteArray x(&amp;quot;apple&amp;quot;);
    QByteArray y = x.rightJustified(8, '.');    &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; y == &amp;quot;...apple&amp;quot;&lt;/pre&gt;

@see &lt;a href=&quot;QByteArray.html#leftJustified(int, byte, boolean)&quot;&gt;&lt;tt&gt;leftJustified&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QByteArray rightJustified(int width, byte fill)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QByteArray.html#rightJustified(int, byte, boolean)&quot;&gt;&lt;tt&gt;rightJustified&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;width&lt;/tt&gt;, &lt;tt&gt;fill&lt;/tt&gt;, false). */"/>
    <method name="public final com.trolltech.qt.core.QByteArray rightJustified(int width)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QByteArray.html#rightJustified(int, byte, boolean)&quot;&gt;&lt;tt&gt;rightJustified&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;width&lt;/tt&gt;, ' ', false). */"/>
    <method name="public final com.trolltech.qt.core.QByteArray simplified()" doc="/**
&lt;p&gt;Returns a byte array that has whitespace removed from the start and the end, and which has each sequence of internal whitespace replaced with a single space.&lt;/p&gt;
&lt;p&gt;Whitespace means any character for which the standard C++ isspace() function returns true. This includes the ASCII characters '\t', '\n', '\v', '\f', '\r', and ' '.&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;pre&gt;    QByteArray ba(&amp;quot;  lots\t of\nwhitespace\r\n &amp;quot;);
    ba = ba.simplified();
&lt;span class=&quot;comment&quot;&gt;    //&lt;/span&gt; ba == &amp;quot;lots of whitespace&amp;quot;;&lt;/pre&gt;

@see &lt;a href=&quot;QByteArray.html#trimmed()&quot;&gt;&lt;tt&gt;trimmed&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int size()" doc="/**
&lt;p&gt;Returns the number of bytes in this byte array.&lt;/p&gt;
&lt;p&gt;The last byte in the byte array is at position &lt;a href=&quot;QByteArray.html#size()&quot;&gt;&lt;tt&gt;size&lt;/tt&gt;&lt;/a&gt; - 1. In addition, &lt;a href=&quot;QByteArray.html#QByteArray()&quot;&gt;&lt;tt&gt;QByteArray&lt;/tt&gt;&lt;/a&gt; ensures that the byte at position &lt;a href=&quot;QByteArray.html#size()&quot;&gt;&lt;tt&gt;size&lt;/tt&gt;&lt;/a&gt; is always '\0', so that you can use the return value of &lt;a href=&quot;QByteArray.html#data()&quot;&gt;&lt;tt&gt;data&lt;/tt&gt;&lt;/a&gt; and constData() as arguments to functions that expect '\0'-terminated strings.&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;pre&gt;    QByteArray ba(&amp;quot;Hello&amp;quot;);
    int n = ba.size();          &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; n == 5
    ba.data()[0];               &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; returns 'H'
    ba.data()[4];               &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; returns 'o'
    ba.data()[5];               &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; returns '\0'&lt;/pre&gt;

@see &lt;a href=&quot;QByteArray.html#isEmpty()&quot;&gt;&lt;tt&gt;isEmpty&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QByteArray.html#resize(int)&quot;&gt;&lt;tt&gt;resize&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.util.List&lt;com.trolltech.qt.core.QByteArray&gt; split(byte sep)" doc="/**
&lt;p&gt;Splits the byte array into subarrays wherever &lt;tt&gt;sep&lt;/tt&gt; occurs, and returns the list of those arrays. If &lt;tt&gt;sep&lt;/tt&gt; does not match anywhere in the byte array, &lt;a href=&quot;QByteArray.html#split(byte)&quot;&gt;&lt;tt&gt;split&lt;/tt&gt;&lt;/a&gt; returns a single-element list containing this byte array.&lt;/p&gt;
 */"/>
    <method name="public final void squeeze()" doc="/**
&lt;p&gt;Releases any memory not required to store the array's data.&lt;/p&gt;
&lt;p&gt;The sole purpose of this function is to provide a means of fine tuning &lt;a href=&quot;QByteArray.html#QByteArray()&quot;&gt;&lt;tt&gt;QByteArray&lt;/tt&gt;&lt;/a&gt;'s memory usage. In general, you will rarely ever need to call this function.&lt;/p&gt;

@see &lt;a href=&quot;QByteArray.html#reserve(int)&quot;&gt;&lt;tt&gt;reserve&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QByteArray.html#capacity()&quot;&gt;&lt;tt&gt;capacity&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean startsWith(byte c)" doc="/**
&lt;p&gt;Returns true if this byte array starts with character &lt;tt&gt;c&lt;/tt&gt;; otherwise returns false.&lt;/p&gt;
 */"/>
    <method name="public final boolean startsWith(com.trolltech.qt.core.QByteArray a)" doc="/**
&lt;p&gt;Returns true if this byte array starts with byte array &lt;tt&gt;a&lt;/tt&gt;; otherwise returns false.&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;pre&gt;    QByteArray url(&amp;quot;ftp:&lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt;ftp.trolltech.com/&amp;quot;);
    if (url.startsWith(&amp;quot;ftp:&amp;quot;))
        ...&lt;/pre&gt;

@see &lt;a href=&quot;QByteArray.html#endsWith(byte)&quot;&gt;&lt;tt&gt;endsWith&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QByteArray.html#left(int)&quot;&gt;&lt;tt&gt;left&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QByteArray toBase64()" doc="/**
&lt;p&gt;Returns a copy of the byte array, encoded as Base64.&lt;/p&gt;
&lt;pre&gt;    QByteArray text(&amp;quot;Qt is great!&amp;quot;);
    text.toBase64();        &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; returns &amp;quot;UXQgaXMgZ3JlYXQh&amp;quot;&lt;/pre&gt;
&lt;p&gt;The algorithm used to encode Base64-encoded data is defined in RFC 2045&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QByteArray.html#fromBase64(com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;fromBase64&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QByteArray toHex()" doc="/**
&lt;p&gt;Returns a hex encoded copy of the byte array. The hex encoding uses the numbers 0-9 and the letters a-f.&lt;/p&gt;

@see &lt;a href=&quot;QByteArray.html#fromHex(com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;fromHex&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QByteArray toLower()" doc="/**
&lt;p&gt;Returns a lowercase copy of the byte array. The bytearray is interpreted as a Latin-1 encoded string.&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;pre&gt;    QByteArray x(&amp;quot;TROlltECH&amp;quot;);
    QByteArray y = x.toLower();
&lt;span class=&quot;comment&quot;&gt;    //&lt;/span&gt; y == &amp;quot;trolltech&amp;quot;&lt;/pre&gt;

@see &lt;a href=&quot;QByteArray.html#toUpper()&quot;&gt;&lt;tt&gt;toUpper&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QByteArray.html#note-on-8-bit-character-comparisons&quot;&gt;Note on 8-bit character comparisons&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QByteArray toUpper()" doc="/**
&lt;p&gt;Returns an uppercase copy of the byte array. The bytearray is interpreted as a Latin-1 encoded string.&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;pre&gt;    QByteArray x(&amp;quot;TROlltECH&amp;quot;);
    QByteArray y = x.toUpper();
&lt;span class=&quot;comment&quot;&gt;    //&lt;/span&gt; y == &amp;quot;TROLLTECH&amp;quot;&lt;/pre&gt;

@see &lt;a href=&quot;QByteArray.html#toLower()&quot;&gt;&lt;tt&gt;toLower&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QByteArray.html#note-on-8-bit-character-comparisons&quot;&gt;Note on 8-bit character comparisons&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QByteArray trimmed()" doc="/**
&lt;p&gt;Returns a byte array that has whitespace removed from the start and the end.&lt;/p&gt;
&lt;p&gt;Whitespace means any character for which the standard C++ isspace() function returns true. This includes the ASCII characters '\t', '\n', '\v', '\f', '\r', and ' '.&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;pre&gt;    QByteArray ba(&amp;quot;  lots\t of\nwhitespace\r\n &amp;quot;);
    ba = ba.trimmed();
&lt;span class=&quot;comment&quot;&gt;    //&lt;/span&gt; ba == &amp;quot;lots\t of\nwhitespace&amp;quot;;&lt;/pre&gt;
&lt;p&gt;Unlike &lt;a href=&quot;QByteArray.html#simplified()&quot;&gt;&lt;tt&gt;simplified&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QByteArray.html#trimmed()&quot;&gt;&lt;tt&gt;trimmed&lt;/tt&gt;&lt;/a&gt; leaves internal whitespace alone.&lt;/p&gt;

@see &lt;a href=&quot;QByteArray.html#simplified()&quot;&gt;&lt;tt&gt;simplified&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void truncate(int pos)" doc="/**
&lt;p&gt;Truncates the byte array at index position &lt;tt&gt;pos&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;If &lt;tt&gt;pos&lt;/tt&gt; is beyond the end of the array, nothing happens.&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;pre&gt;    QByteArray ba(&amp;quot;Stockholm&amp;quot;);
    ba.truncate(5);             &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; ba == &amp;quot;Stock&amp;quot;&lt;/pre&gt;

@see &lt;a href=&quot;QByteArray.html#chop(int)&quot;&gt;&lt;tt&gt;chop&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QByteArray.html#resize(int)&quot;&gt;&lt;tt&gt;resize&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QByteArray.html#left(int)&quot;&gt;&lt;tt&gt;left&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public static com.trolltech.qt.core.QByteArray fromBase64(com.trolltech.qt.core.QByteArray base64)" doc="/**
&lt;p&gt;Returns a decoded copy of the Base64 array &lt;tt&gt;base64&lt;/tt&gt;. Input is not checked for validity; invalid characters in the input are skipped, enabling the decoding process to continue with subsequent characters.&lt;/p&gt;
&lt;p&gt;For example:&lt;/p&gt;
&lt;pre&gt;    QByteArray text = QByteArray::fromBase64(&amp;quot;UXQgaXMgZ3JlYXQh&amp;quot;);
    text.data();            &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; returns &amp;quot;Qt is great!&amp;quot;&lt;/pre&gt;
&lt;p&gt;The algorithm used to decode Base64-encoded data is defined in RFC 2045&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QByteArray.html#toBase64()&quot;&gt;&lt;tt&gt;toBase64&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public static com.trolltech.qt.core.QByteArray fromHex(com.trolltech.qt.core.QByteArray hexEncoded)" doc="/**
&lt;p&gt;Returns a decoded copy of the hex encoded array &lt;tt&gt;hexEncoded&lt;/tt&gt;. Input is not checked for validity; invalid characters in the input are skipped, enabling the decoding process to continue with subsequent characters.&lt;/p&gt;
&lt;p&gt;For example:&lt;/p&gt;
&lt;pre&gt;    QByteArray text = QByteArray::fromHex(&amp;quot;517420697320677265617421&amp;quot;);
    text.data();            &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; returns &amp;quot;Qt is great!&amp;quot;&lt;/pre&gt;

@see &lt;a href=&quot;QByteArray.html#toHex()&quot;&gt;&lt;tt&gt;toHex&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public native static com.trolltech.qt.core.QByteArray number(double arg__1, byte f, int prec)" doc="/**
&lt;p&gt;Returns a byte array that contains the printed value of &lt;tt&gt;arg__1&lt;/tt&gt;, formatted in format &lt;tt&gt;f&lt;/tt&gt; with precision &lt;tt&gt;prec&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;Argument &lt;tt&gt;arg__1&lt;/tt&gt; is formatted according to the &lt;tt&gt;f&lt;/tt&gt; format specified, which is &lt;tt&gt;g&lt;/tt&gt; by default, and can be any of the following:&lt;/p&gt;
&lt;p&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; border=&quot;0&quot;&gt;
&lt;thead&gt;&lt;tr valign=&quot;top&quot; class=&quot;qt-style&quot;&gt;&lt;th&gt;Format&lt;/th&gt;&lt;th&gt;Meaning&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;&lt;tt&gt;e&lt;/tt&gt;&lt;/td&gt;&lt;td&gt;format as [-]9.9e[+|-]999&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;&lt;tt&gt;E&lt;/tt&gt;&lt;/td&gt;&lt;td&gt;format as [-]9.9E[+|-]999&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;&lt;tt&gt;f&lt;/tt&gt;&lt;/td&gt;&lt;td&gt;format as [-]9.9&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;&lt;tt&gt;g&lt;/tt&gt;&lt;/td&gt;&lt;td&gt;use &lt;tt&gt;e&lt;/tt&gt; or &lt;tt&gt;f&lt;/tt&gt; format, whichever is the most concise&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;&lt;tt&gt;G&lt;/tt&gt;&lt;/td&gt;&lt;td&gt;use &lt;tt&gt;E&lt;/tt&gt; or &lt;tt&gt;f&lt;/tt&gt; format, whichever is the most concise&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/p&gt;
&lt;p&gt;With 'e', 'E', and 'f', &lt;tt&gt;prec&lt;/tt&gt; is the number of digits after the decimal point. With 'g' and 'G', &lt;tt&gt;prec&lt;/tt&gt; is the maximum number of significant digits (trailing zeroes are omitted).&lt;/p&gt;
&lt;pre&gt;    QByteArray ba = QByteArray::number(12.3456, 'E', 3);
&lt;span class=&quot;comment&quot;&gt;    //&lt;/span&gt; ba == 1.235E+01&lt;/pre&gt;

@see &lt;tt&gt;toDouble&lt;/tt&gt; */"/>
    <method name="public static com.trolltech.qt.core.QByteArray number(double arg__1, byte f)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QByteArray.html#number(int, int)&quot;&gt;number&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;arg__1&lt;/tt&gt;, &lt;tt&gt;f&lt;/tt&gt;, 6). */"/>
    <method name="public static com.trolltech.qt.core.QByteArray number(double arg__1)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QByteArray.html#number(int, int)&quot;&gt;number&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;arg__1&lt;/tt&gt;, 'g', 6). */"/>
    <method name="public native static com.trolltech.qt.core.QByteArray number(long arg__1, int base)"/>
    <method name="public static com.trolltech.qt.core.QByteArray number(long arg__1)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QByteArray.html#number(int, int)&quot;&gt;number&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;arg__1&lt;/tt&gt;, 10). */"/>
    <method name="public native static com.trolltech.qt.core.QByteArray number(int arg__1, int base)" doc="/**
&lt;p&gt;Returns a byte array containing the string equivalent of the number &lt;tt&gt;arg__1&lt;/tt&gt; to base &lt;tt&gt;base&lt;/tt&gt; (10 by default). The &lt;tt&gt;base&lt;/tt&gt; can be any value between 2 and 36.&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;pre&gt;    int n = 63;
    QByteArray::number(n);              &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; returns &amp;quot;63&amp;quot;
    QByteArray::number(n, 16);          &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; returns &amp;quot;3f&amp;quot;
    QByteArray::number(n, 16).toUpper();  &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; returns &amp;quot;3F&amp;quot;&lt;/pre&gt;

@see &lt;tt&gt;setNum&lt;/tt&gt;
@see &lt;tt&gt;toInt&lt;/tt&gt; */"/>
    <method name="public static com.trolltech.qt.core.QByteArray number(int arg__1)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QByteArray.html#number(int, int)&quot;&gt;number&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;arg__1&lt;/tt&gt;, 10). */"/>
</class>
