version 1.10, 2007/02/13 19:21:44
|
version 1.11, 2007/12/10 14:11:29
|
|
|
{ | { |
public: | public: |
| |
Buffer(); |
Buffer(Uint32 minCap=2048); |
| |
Buffer(const Buffer& x); | Buffer(const Buffer& x); |
| |
Buffer(const char* data, Uint32 size); |
Buffer(const char* data, Uint32 size, Uint32 minCap=2048); |
| |
~Buffer(); | ~Buffer(); |
| |
|
|
| |
BufferRep* _rep; | BufferRep* _rep; |
static BufferRep _empty_rep; | static BufferRep _empty_rep; |
|
Uint32 _minCap; |
}; | }; |
| |
inline Buffer::Buffer() : _rep(&_empty_rep) |
inline Buffer::Buffer(Uint32 minCap) : _rep(&_empty_rep), _minCap(minCap) |
{ | { |
} | } |
| |