QByteArray(3qt)
π QByteArray β the 3qt manual, but make it make sense π
okay bestie, gather round, because we're about to get intimate with an array of bytes. this is the QByteArray(3qt) page and honestly? it's short. it's sweet. it's giving "low-level but make it cute". let's go. β¨
πΈ NAME πΈ
QByteArray β Array of bytes. that's it. that's the whole name. no notes. π
β¨ SYNOPSIS β¨
first thing first, the iconic disclaimer:
All the functions in this class are reentrant when Qt is built with thread support.</p>
(yes, the stray </p> is literally in the source. we don't fix it. we respect it. it's part of the lore. π«Ά)
#include <qcstring.h>
Inherits QMemArray<char>.
Inherited by QBitArray and QCString. the family tree is thriving. π³
π Public Members
QByteArray ()
QByteArray ( int size )
π₯ RELATED FUNCTION DOCUMENTATION π₯
QByteArray qCompress ( const QByteArray & data )
QByteArray qCompress ( const uchar * data, int nbytes )
QByteArray qUncompress ( const QByteArray & data )
QByteArray qUncompress ( const uchar * data, int nbytes )
squish and unsquish. the whole squad is here. π
π DESCRIPTION π
so. the QByteArray class provides an array of bytes. literally what it says on the tin, no cap.
more specifically? it's an explicitly shared array of bytes, and it's lowkey perfect for manipulating memory areas with custom data. the way it does this is by being implemented as a QMemArray<char> β so if you want the full tea, go read the QMemArray documentation, because that's where the real details live. π
See also: Collection Classes and Non-GUI Classes. iykyk. π«
π MEMBER FUNCTION DOCUMENTATION π
QByteArray::QByteArray ()
Constructs an empty QByteArray. blank slate. main character at the start of her arc. π±
QByteArray::QByteArray ( int size )
Constructs a QByteArray of size size. that's the argument. that's the vibe. π
π§ RELATED FUNCTION DOCUMENTATION π§
QByteArray qCompress ( const QByteArray & data )
Compresses the array data and hands you back the compressed byte array, using zlib. tiny data, big energy. π₯
See also: qUncompress().
QByteArray qCompress ( const uchar * data, int nbytes )
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
Compresses the array data which is nbytes long and returns the compressed byte array. same energy, different entry point. β¨
QByteArray qUncompress ( const QByteArray & data )
Uncompresses the array data and returns the uncompressed byte array.
heads up bestie: it returns an empty QByteArray if the input data was corrupt. so if you get nothing back, that might be why. π
See also: qCompress().
QByteArray qUncompress ( const uchar * data, int nbytes )
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
Uncompresses the array data which is nbytes long and returns the uncompressed byte array. π¦
π SEE ALSO π
go forth and read, bestie. π
π COPYRIGHT π
Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the license file included in the distribution for a complete license statement.
πΈ AUTHOR πΈ
Generated automatically from the source code. (no human author to stan, only the machine. iconic of it honestly. π€β¨)
π BUGS π
If you find a bug in Qt, please report it as described in http://doc.trolltech.com/bughowto.html. Good bug reports help us to help you. Thank you. π«Ά (yes they really say thank you. polite queens.)
The definitive Qt documentation is provided in HTML format; it is located at $QTDIR/doc/html and can be read using Qt Assistant or with a web browser. This man page is provided as a convenience for those users who prefer man pages, although this format is not officially supported by Trolltech. (we're the unofficial remix. the bootleg. the mixtape. π§)
If you find errors in this manual page, please report them to qt-bugs@trolltech.com. Please include the name of the manual page (qbytearray.3qt) and the Qt version (3.3.8).
okay and that's the whole page!! it's from Trolltech AS, dated 2 February 2007, and it's the QByteArray(3qt) manual β version 3.3.8 of Qt, if you were wondering. love that for us. bye bestie, go compress something. πππ¦
π¦ where this page comes from
- fedora 43: qt3-devel-docs 3.3.8b-102.fc43 Β· QPL-1.0 OR GPL-2.0-only OR GPL-3.0-only
- fedora 44: qt3-devel-docs 3.3.8b-103.fc44 Β· QPL-1.0 OR GPL-2.0-only OR GPL-3.0-only
- Copyright 1992-2007 Trolltech ASA. All rights reserved. See the
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms