GDAL

Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
OGRAppendBuffer Class Referenceabstract

Append buffer that can be grown dynamically. More...

`#include <ogr_wkb.h>`

## Public Member Functions
| OGRAppendBuffer ()
| Constructor.
virtual | ~OGRAppendBuffer ()
| Destructor.
void * | GetPtrForNewBytes (size_t nItemSize)
| Return the pointer at which nItemSize bytes can be written, or nullptr in case of error.
size_t | GetSize () const
| Return the number of valid bytes in the buffer.

## Protected Member Functions
virtual bool | Grow (size_t nItemSize)=0
| Extend the capacity of m_pRawBuffer to be at least m_nSize + nItemSize large.

## Protected Attributes
size_t | m_nCapacity = 0
| Capacity of the buffer (ie number of bytes allocated).
size_t | m_nSize = 0
| Number of valid bytes in the buffer.
void * | m_pRawBuffer = nullptr
| Raw buffer pointer.

## Detailed Description

Append buffer that can be grown dynamically.

The documentation for this class was generated from the following files:

- ogr_wkb.h
- ogr_wkb.cpp