template <typename Storage>

class RawBitmapGeneric

Defined at line 98 of file ../../zircon/system/ulib/bitmap/include/bitmap/raw-bitmap.h

A simple bitmap backed by generic storage.

Storage must implement:

- zx_status_t Allocate(size_t size)

To allocate |size| bytes of storage.

- void* GetData()

To access the underlying storage.

- zx_status_t Grow(size_t size)

(optional) To expand the underlying storage to fit at least |size|

bytes.

Public Methods

void RawBitmapGeneric<Storage> ()

Defined at line 100 of file ../../zircon/system/ulib/bitmap/include/bitmap/raw-bitmap.h

void ~RawBitmapGeneric<Storage> ()

Defined at line 101 of file ../../zircon/system/ulib/bitmap/include/bitmap/raw-bitmap.h

void RawBitmapGeneric<Storage> (RawBitmapGeneric<Storage> && rhs)

Defined at line 102 of file ../../zircon/system/ulib/bitmap/include/bitmap/raw-bitmap.h

RawBitmapGeneric<Storage> & operator= (RawBitmapGeneric<Storage> && rhs)

Defined at line 103 of file ../../zircon/system/ulib/bitmap/include/bitmap/raw-bitmap.h

void RawBitmapGeneric<Storage> (const RawBitmapGeneric<Storage> & )

Defined at line 104 of file ../../zircon/system/ulib/bitmap/include/bitmap/raw-bitmap.h

RawBitmapGeneric<Storage> & operator= (const RawBitmapGeneric<Storage> & )

Defined at line 104 of file ../../zircon/system/ulib/bitmap/include/bitmap/raw-bitmap.h

template <typename U = Storage>
typename std::enable_if<internal::has_grow<U>::value, zx_status_t>::type Grow (size_t size)

Increases the bitmap size

Defined at line 108 of file ../../zircon/system/ulib/bitmap/include/bitmap/raw-bitmap.h

template <typename U = Storage>
typename std::enable_if<!internal::has_grow<U>::value, zx_status_t>::type Grow (size_t size)

Defined at line 138 of file ../../zircon/system/ulib/bitmap/include/bitmap/raw-bitmap.h

template <typename U = Storage>
typename std::enable_if<! internal::has_grow<U>::value, zx_status_t>::type Grow (size_t size)

Defined at line 138 of file ../../zircon/system/ulib/bitmap/include/bitmap/raw-bitmap.h

zx_status_t Reset (size_t size)

Resets the bitmap; clearing and resizing it.

Allocates memory, and can fail.

Defined at line 144 of file ../../zircon/system/ulib/bitmap/include/bitmap/raw-bitmap.h

const Storage * StorageUnsafe ()

These functions allow access to underlying data, but is dangerous: It

leaks the pointer to bits_. Reset and the bitmap destructor should not

be called on the bitmap while the pointer returned from data() is alive.

Defined at line 163 of file ../../zircon/system/ulib/bitmap/include/bitmap/raw-bitmap.h

Storage * StorageUnsafe ()

Defined at line 164 of file ../../zircon/system/ulib/bitmap/include/bitmap/raw-bitmap.h