#include <PdfRefCountedBuffer.h>
Public Member Functions | |
PdfRefCountedBuffer () | |
PdfRefCountedBuffer (char *pBuffer, size_t lSize) | |
PdfRefCountedBuffer (size_t lSize) | |
PdfRefCountedBuffer (const PdfRefCountedBuffer &rhs) | |
~PdfRefCountedBuffer () | |
char * | GetBuffer () const |
size_t | GetSize () const |
void | Resize (size_t lSize) |
const PdfRefCountedBuffer & | operator= (const PdfRefCountedBuffer &rhs) |
void | SetTakePossesion (bool bTakePossession) |
bool | TakePossesion () const |
bool | operator== (const PdfRefCountedBuffer &rhs) const |
bool | operator< (const PdfRefCountedBuffer &rhs) const |
bool | operator> (const PdfRefCountedBuffer &rhs) const |
The attached memory object can be resized.
|
Created an empty reference counted buffer The buffer will be initialize to NULL |
|
Created an reference counted buffer and use an exiting buffer The buffer will be owned by this object.
|
|
Create a new PdfRefCountedBuffer.
|
|
Copy an existing PdfRefCountedBuffer and increase the reference count
|
|
Decrease the reference count and delete the buffer if this is the last owner |
|
Get access to the buffer
|
|
Return the buffer size.
|
|
Compare to buffers.
|
|
Copy an existing PdfRefCountedBuffer and increase the reference count
|
|
Compare to buffers.
|
|
Compare to buffers.
|
|
Resize the buffer to hold at least lSize bytes.
|
|
If the PdfRefCountedBuffer has no possesion on its buffer, it won't delete the buffer. By default the buffer is owned and deleted by the PdfRefCountedBuffer object.
|
|
|