#include <buf_cache.hpp>
Public Member Functions | |
buf_cache (int bsize) | |
~buf_cache () | |
void * | take_buf () |
void | return_buf (mem_buf &mb) |
int | buf_size () const |
Definition at line 45 of file buf_cache.hpp.
ders::buf_cache::buf_cache | ( | int | bsize | ) | [inline] |
ders::buf_cache::~buf_cache | ( | ) | [inline] |
void * ders::buf_cache::take_buf | ( | ) | [inline] |
Definition at line 66 of file buf_cache.hpp.
00067 { 00068 if (!bufs.size()) return operator new(bsz); 00069 00070 void* ret=bufs.back(); 00071 bufs.pop_back(); 00072 return ret; 00073 }
void ders::buf_cache::return_buf | ( | mem_buf & | mb | ) | [inline] |
int ders::buf_cache::buf_size | ( | ) | const [inline] |