82 void set_bits(uint32_t from, uint32_t to);
89 char* pos =
reinterpret_cast<char*
>(&bitmap[first_unset_byte]);
90 length =
sizeof(
alloc_page) - (pos - reinterpret_cast<char*>(
this));
98 #endif // __ALLOC_PAGE_H void format_empty()
Definition: alloc_page.cpp:7
void set_bit(uint32_t index)
Definition: alloc_page.h:76
#define w_assert1(x)
Level 1 should not add significant extra time.
Definition: w_base.h:198
BOOST_STATIC_ASSERT(sizeof(alloc_page)==generic_page_header::page_sz)
void unset_bit(uint32_t index)
Definition: alloc_page.h:72
A generic page view: any Zero page can be viewed as being of this type but it only exposes fields sha...
Definition: generic_page.h:121
uint32_t bit_place(uint32_t index)
Definition: alloc_page.h:60
char * unused_part(size_t &length)
Definition: alloc_page.h:87
uint32_t extent_id_t
Definition: alloc_page.h:12
bool get_bit(uint32_t index)
Definition: alloc_page.h:68
uint8_t bitmap[bitmapsize]
Definition: alloc_page.h:48
Free-page allocation/deallocation page.
Definition: alloc_page.h:28
uint32_t get_last_set_bit()
Definition: alloc_page.cpp:35
void set_bits(uint32_t from, uint32_t to)
Definition: alloc_page.cpp:14
static constexpr int bits_held
Definition: alloc_page.h:46
static constexpr int bitmapsize
Definition: alloc_page.h:44
uint32_t bit_mask(uint32_t index)
Definition: alloc_page.h:64
char _fill[sizeof(generic_page)/2 - sizeof(generic_page_header)]
Definition: alloc_page.h:54
uint32_t byte_place(uint32_t index)
Definition: alloc_page.h:56