class Bitmap

Defined at line 16 of file ../../src/ui/lib/escher/util/bitmap.h

Stores boolean values as a tightly-packed bitmap.

Public Methods

void Bitmap (uint32_t * bits, uint32_t bits_size)

The caller is responsible for ensuring that |bits| outlives the Bitmap.

Defined at line 19 of file ../../src/ui/lib/escher/util/bitmap.h

bool Get (uint32_t offset)

Get the value of a single bit.

Defined at line 22 of file ../../src/ui/lib/escher/util/bitmap.h

void Set (uint32_t offset)

Set the value of a single bit to 1.

Defined at line 29 of file ../../src/ui/lib/escher/util/bitmap.h

void Clear (uint32_t offset)

Clear the value of a single bit to 0.

Defined at line 36 of file ../../src/ui/lib/escher/util/bitmap.h

void ClearAll ()

Clear all values in the bitmap to 0.

Defined at line 43 of file ../../src/ui/lib/escher/util/bitmap.h

uint32_t GetSize ()

Return the number of bits that can be held by the Bitmap.

Defined at line 50 of file ../../src/ui/lib/escher/util/bitmap.h

Protected Methods

void SetBitStorage (uint32_t * bits, uint32_t bits_size)

Used by subclasses to change the size of the bit storage. It is up to

the caller to copy the old values into the new memory, if desired.

Defined at line 55 of file ../../src/ui/lib/escher/util/bitmap.h