dillo
3.0.5
About: dillo is a small, fast, extensible Web browser particularly suitable for older or smaller computers and embedded systems (but only limited or no support for frames, CSS, JavaScript, Java).
![]() ![]() |
A bit set, which automatically reallocates when needed. More...
#include <misc.hh>
Public Member Functions | |
BitSet (int initBits) | |
~BitSet () | |
void | intoStringBuffer (misc::StringBuffer *sb) |
bool | get (int i) const |
void | set (int i, bool val) |
void | clear () |
Private Member Functions | |
int | bytesForBits (int bits) |
Private Attributes | |
unsigned char * | bits |
int | numBytes |
lout::misc::BitSet::BitSet | ( | int | initBits | ) |
|
inlineprivate |
void lout::misc::BitSet::clear | ( | ) |
bool lout::misc::BitSet::get | ( | int | i | ) | const |
Definition at line 154 of file misc.cc.
References bits, and numBytes.
Referenced by dw::fltk::FltkImgbuf::init(), and intoStringBuffer().
void lout::misc::BitSet::intoStringBuffer | ( | misc::StringBuffer * | sb | ) |
Definition at line 146 of file misc.cc.
References lout::misc::StringBuffer::append(), get(), and numBytes.
void lout::misc::BitSet::set | ( | int | i, |
bool | val | ||
) |
|
private |
|
private |