#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
Go to the source code of this file.
Compounds | |
struct | block_pool::block_chain_struct |
typedef for memory block chain. More... | |
class | block_pool |
This class supports memory pool allocation. More... | |
Defines | |
#define | Chain_block(p) ((p)->block) |
return the memory block. More... | |
#define | Chain_bytes_used(p) ((p)->bytes_used) |
return the number of bytes used. More... | |
#define | Chain_block_size(p) ((p)->block_size) |
return the size of the memory block. More... | |
#define | Chain_next(p) ((p)->next_block) |
return the next block_chain structure in the list. More... |
Copyright and Use
You may use this source code without limitation and without fee as long as you include:
This software was written and is copyrighted by Ian Kaplan, Bear Products International, www.bearcave.com, 2002.
This software is provided "as is", without any warranty or claim as to its usefulness. Anyone who uses this source code uses it at their own risk. Nor is any support provided by Ian Kaplan and Bear Products International.
Please send any bug fixes or suggested source changes to:
iank@bearcave.com
Definition in file blockpool.h.
|
return the memory block.
Definition at line 158 of file blockpool.h. Referenced by block_pool::new_block(), and block_pool::pool_alloc().
|
|
return the size of the memory block.
Definition at line 164 of file blockpool.h. Referenced by block_pool::new_block(), block_pool::pool_alloc(), and block_pool::print_block_pool_info().
|
|
return the number of bytes used.
Definition at line 161 of file blockpool.h. Referenced by block_pool::new_block(), block_pool::pool_alloc(), and block_pool::print_block_pool_info().
|
|
return the next block_chain structure in the list.
Definition at line 167 of file blockpool.h. Referenced by block_pool::add_block(), block_pool::free_pool(), block_pool::new_block(), and block_pool::print_block_pool_info().
|