|
QMdnsEngine
0.1.0
Multicast DNS library for Qt applications
|
256-bit bitmap More...
#include <qmdnsengine/bitmap.h>
Public Member Functions | |
| Bitmap () | |
| Create an empty bitmap. | |
| Bitmap (const Bitmap &other) | |
| Create a copy of an existing bitmap. | |
| virtual | ~Bitmap () |
| Destroy the bitmap. | |
| const quint8 * | data () const |
| Retrieve a pointer to the underlying data in the bitmap. More... | |
| quint8 | length () const |
| Retrieve the length of the block in bytes. More... | |
| Bitmap & | operator= (const Bitmap &other) |
| Assignment operator. | |
| bool | operator== (const Bitmap &other) |
| Equality operator. | |
| void | setData (quint8 length, const quint8 *data) |
| Set the data to be stored in the bitmap. More... | |
Bitmaps are used in QMdnsEngine::NSEC records to indicate which records are available. Bitmaps in mDNS records use only the first block (block 0).
| const quint8* QMdnsEngine::Bitmap::data | ( | ) | const |
Use the length() method to determine how many bytes contain valid data.
| quint8 QMdnsEngine::Bitmap::length | ( | ) | const |
This method indicates how many bytes are pointed to by the data() method.
| void QMdnsEngine::Bitmap::setData | ( | quint8 | length, |
| const quint8 * | data | ||
| ) |
The length parameter indicates how many bytes of data are valid. The actual bytes are copied to the bitmap.
1.8.13