mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-21 20:42:56 +01:00
base: Add Allocator_avl::size_at function
This function provides a way to request the size of an previously allocated block. It is useful to to ease the implementation of realloc functionality based on Allocator_avl.
This commit is contained in:
committed by
Christian Helmuth
parent
16bc2bc840
commit
db2fe17269
@@ -231,6 +231,11 @@ namespace Genode {
|
||||
|
||||
void free(void *addr, size_t) { free(addr); }
|
||||
|
||||
/**
|
||||
* Return size of block at specified address
|
||||
*/
|
||||
size_t size_at(void const *addr) const;
|
||||
|
||||
/**
|
||||
* Return the memory overhead per Block
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user