#include <stream.h>
Definition at line 34 of file stream.h.
OutputBufferManager::OutputBufferManager |
( |
| ) |
|
void OutputBufferManager::AllocateBuffer |
( |
size_t |
size | ) |
|
allocate a new output buffer.
- Parameters
-
notes:
- if a buffer had previously been allocated and is large enough, it is reused (this reduces the number of allocations).
- this class manages the lifetime of the buffer.
Definition at line 54 of file stream.cpp.
u8* OutputBufferManager::Buffer |
( |
| ) |
const |
|
inline |
bool OutputBufferManager::IsAllowableBuffer |
( |
u8 * |
buffer, |
|
|
size_t |
size |
|
) |
| |
|
private |
void OutputBufferManager::Reset |
( |
| ) |
|
void OutputBufferManager::SetBuffer |
( |
u8 * |
buffer, |
|
|
size_t |
size |
|
) |
| |
size_t OutputBufferManager::Size |
( |
| ) |
const |
|
inline |
u8* OutputBufferManager::m_buffer |
|
private |
size_t OutputBufferManager::m_capacity |
|
private |
shared_ptr<u8> OutputBufferManager::m_mem |
|
private |
size_t OutputBufferManager::m_size |
|
private |
The documentation for this class was generated from the following files:
- /home/sathyam/0ad.svn/source/lib/file/archive/stream.h
- /home/sathyam/0ad.svn/source/lib/file/archive/stream.cpp