1QByteArray(3qt)                                                QByteArray(3qt)
2
3
4

NAME

6       QByteArray - Array of bytes
7

SYNOPSIS

9       All the functions in this class are reentrant when Qt is built with
10       thread support.</p>
11
12       #include <qcstring.h>
13
14       Inherits QMemArray<char>.
15
16       Inherited by QBitArray and QCString.
17
18   Public Members
19       QByteArray ()
20       QByteArray ( int size )
21
23       QByteArray qCompress ( const QByteArray & data )
24       QByteArray qCompress ( const uchar * data, int nbytes )
25       QByteArray qUncompress ( const QByteArray & data )
26       QByteArray qUncompress ( const uchar * data, int nbytes )
27

DESCRIPTION

29       The QByteArray class provides an array of bytes.
30
31       The QByteArray class provides an explicitly shared array of bytes. It
32       is useful for manipulating memory areas with custom data. QByteArray is
33       implemented as a QMemArray<char>. See the QMemArray documentation for
34       further information.
35
36       See also Collection Classes and Non-GUI Classes.
37

MEMBER FUNCTION DOCUMENTATION

QByteArray::QByteArray ()

40       Constructs an empty QByteArray.
41

QByteArray::QByteArray ( int size )

43       Constructs a QByteArray of size size.
44

QByteArray qCompress ( const QByteArray & data )

47       Compresses the array data and returns the compressed byte array using
48       zlib.
49
50       See also qUncompress().
51

QByteArray qCompress ( const uchar * data, int nbytes )

53       This is an overloaded member function, provided for convenience. It
54       behaves essentially like the above function.
55
56       Compresses the array data which is nbytes long and returns the
57       compressed byte array.
58

QByteArray qUncompress ( const QByteArray & data )

60       Uncompresses the array data and returns the uncompressed byte array.
61
62       Returns an empty QByteArray if the input data was corrupt.
63
64       See also qCompress().
65

QByteArray qUncompress ( const uchar * data, int nbytes )

67       This is an overloaded member function, provided for convenience. It
68       behaves essentially like the above function.
69
70       Uncompresses the array data which is nbytes long and returns the
71       uncompressed byte array.
72
73

SEE ALSO

75       http://doc.trolltech.com/qbytearray.html
76       http://www.trolltech.com/faq/tech.html
77
79       Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com.  See the
80       license file included in the distribution for a complete license
81       statement.
82

AUTHOR

84       Generated automatically from the source code.
85

BUGS

87       If you find a bug in Qt, please report it as described in
88       http://doc.trolltech.com/bughowto.html.  Good bug reports help us to
89       help you. Thank you.
90
91       The definitive Qt documentation is provided in HTML format; it is
92       located at $QTDIR/doc/html and can be read using Qt Assistant or with a
93       web browser. This man page is provided as a convenience for those users
94       who prefer man pages, although this format is not officially supported
95       by Trolltech.
96
97       If you find errors in this manual page, please report them to qt-
98       bugs@trolltech.com.  Please include the name of the manual page
99       (qbytearray.3qt) and the Qt version (3.3.8).
100
101
102
103Trolltech AS                    2 February 2007                QByteArray(3qt)
Impressum