diff options
Diffstat (limited to 'src/include/memory_chunk.h')
-rw-r--r-- | src/include/memory_chunk.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/include/memory_chunk.h b/src/include/memory_chunk.h index 2c0b052..86a738a 100644 --- a/src/include/memory_chunk.h +++ b/src/include/memory_chunk.h @@ -169,6 +169,12 @@ public: m_data_end = m_data_begin + cursize; return true; } + /* append function + * Data are appended at the end. + */ + bool append_content(const void * data, size_t len){ + set_content(size(), data, len); + } /* insert function * Data are written to the memory area, * the original content are moved towards the rear. |