Dynamic Buffers Example Code

The example shows how dynamic arrays are constructed and used.

DynamicBuffers: using dynamic buffers


Click on the following link to download the example: DynamicBuffers.zip

Download some additional files required by the example: CommonFramework.zip.

View the source code: browse. View the additional files: browse.


The example shows a number of operations on a flat dynamic buffer and a segmented dynamic buffer.

Class summary

Examples of APIs

  • CBufFlat - Provides a flat storage dynamic buffer.

  • CBufSeg - Provides a segmented dynamic buffer.

Security issues

The example requires no specific capabilities in order to run - and does not demonstrate any security issues.