QMdnsEngine  0.1.0
Multicast DNS library for Qt applications
Public Member Functions | List of all members
QMdnsEngine::Bitmap Class Reference

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...
 
Bitmapoperator= (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...
 

Detailed Description

Bitmaps are used in QMdnsEngine::NSEC records to indicate which records are available. Bitmaps in mDNS records use only the first block (block 0).

Member Function Documentation

◆ data()

const quint8* QMdnsEngine::Bitmap::data ( ) const

Use the length() method to determine how many bytes contain valid data.

◆ length()

quint8 QMdnsEngine::Bitmap::length ( ) const

This method indicates how many bytes are pointed to by the data() method.

◆ setData()

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.


The documentation for this class was generated from the following file: