|
| superblock ()=default |
| Construct a default superblock.
|
|
| superblock (void *pointer, std::size_t size) |
| Construct a superblock given a pointer and size. More...
|
|
| superblock (superblock const &)=delete |
|
superblock & | operator= (superblock const &)=delete |
|
| superblock (superblock &&) noexcept=default |
|
superblock & | operator= (superblock &&) noexcept=default |
|
bool | empty () const |
| Is this superblock empty? More...
|
|
std::size_t | free_blocks () const |
| Return the number of free blocks. More...
|
|
bool | contains (block const &blk) const |
| Whether this superblock contains the given block. More...
|
|
bool | fits (std::size_t bytes) const |
| Can this superblock fit bytes bytes? More...
|
|
bool | is_contiguous_before (superblock const &sblk) const |
| Verifies whether this superblock can be merged to the beginning of superblock s. More...
|
|
std::pair< superblock, superblock > | split (std::size_t bytes) const |
| Split this superblock into two by the given size. More...
|
|
superblock | merge (superblock const &sblk) const |
| Coalesce two contiguous superblocks into one. More...
|
|
block | first_fit (std::size_t size) |
| Get the first free block of at least size bytes. More...
|
|
void | coalesce (block const &blk) |
| Coalesce the given block with other free blocks. More...
|
|
std::size_t | total_free_size () const |
| Find the total free block size. More...
|
|
std::size_t | max_free_size () const |
| Find the max free block size. More...
|
|
| byte_span ()=default |
| Construct a default span.
|
|
| byte_span (void *pointer, std::size_t size) |
| Construct a span given a pointer and size. More...
|
|
char * | pointer () const |
| Returns the underlying pointer.
|
|
std::size_t | size () const |
| Returns the size of the span.
|
|
char * | end () const |
| Returns the end of the span.
|
|
bool | is_valid () const |
| Returns true if this span is valid (non-null), false otherwise.
|
|
bool | operator< (byte_span const &span) const |
| Used by std::set to compare spans.
|
|