#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.
| PoDoFo::PdfRefCountedBuffer::PdfRefCountedBuffer | ( | ) | [inline] |
Created an empty reference counted buffer The buffer will be initialize to NULL
| PoDoFo::PdfRefCountedBuffer::PdfRefCountedBuffer | ( | char * | pBuffer, | |
| size_t | lSize | |||
| ) |
Created an reference counted buffer and use an exiting buffer The buffer will be owned by this object.
| pBuffer | a pointer to an allocated buffer | |
| lSize | size of the allocated buffer |
| PoDoFo::PdfRefCountedBuffer::PdfRefCountedBuffer | ( | size_t | lSize | ) | [inline] |
Create a new PdfRefCountedBuffer.
| lSize | buffer size |
| PoDoFo::PdfRefCountedBuffer::PdfRefCountedBuffer | ( | const PdfRefCountedBuffer & | rhs | ) | [inline] |
Copy an existing PdfRefCountedBuffer and increase the reference count
| rhs | the PdfRefCountedBuffer to copy |
| PoDoFo::PdfRefCountedBuffer::~PdfRefCountedBuffer | ( | ) | [inline] |
Decrease the reference count and delete the buffer if this is the last owner
| char * PoDoFo::PdfRefCountedBuffer::GetBuffer | ( | ) | const [inline] |
Get access to the buffer
| size_t PoDoFo::PdfRefCountedBuffer::GetSize | ( | ) | const [inline] |
Return the buffer size.
| bool PoDoFo::PdfRefCountedBuffer::operator< | ( | const PdfRefCountedBuffer & | rhs | ) | const |
Compare to buffers.
| rhs | compare to this buffer |
| const PdfRefCountedBuffer & PoDoFo::PdfRefCountedBuffer::operator= | ( | const PdfRefCountedBuffer & | rhs | ) |
Copy an existing PdfRefCountedBuffer and increase the reference count
| rhs | the PdfRefCountedBuffer to copy |
| bool PoDoFo::PdfRefCountedBuffer::operator== | ( | const PdfRefCountedBuffer & | rhs | ) | const |
Compare to buffers.
| rhs | compare to this buffer |
| bool PoDoFo::PdfRefCountedBuffer::operator> | ( | const PdfRefCountedBuffer & | rhs | ) | const |
Compare to buffers.
| rhs | compare to this buffer |
| void PoDoFo::PdfRefCountedBuffer::Resize | ( | size_t | lSize | ) | [inline] |
Resize the buffer to hold at least lSize bytes.
| lSize | the size of bytes the buffer can at least hold |
| void PoDoFo::PdfRefCountedBuffer::SetTakePossesion | ( | bool | bTakePossession | ) | [inline] |
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.
| bTakePossession | if false the buffer will not be deleted. |
| bool PoDoFo::PdfRefCountedBuffer::TakePossesion | ( | ) | const [inline] |
1.4.7