docs/Writerside/topics/buffer.h.md

Fri, 24 Jan 2025 21:12:09 +0100

author
Mike Becker <universe@uap-core.de>
date
Fri, 24 Jan 2025 21:12:09 +0100
branch
docs/3.1
changeset 1143
0559812df10c
parent 1142
9437530176bc
child 1146
151c057faf7c
permissions
-rw-r--r--

assign proper names to the documentation topics

relates to #451

# Buffer

Instances of this buffer implementation can be used to read from or write to memory like you would do with a stream.
This allows the use of `cx_stream_copy()` (see [Utilities](#utilities)) to copy contents from one buffer to another,
or from a file or network streams to the buffer and vice-versa.

More features for convenient use of the buffer can be enabled, like automatic memory management and automatic
resizing of the buffer space.

Since UCX 3.0, the buffer also supports automatic flushing of contents to another stream (or buffer) as an alternative
to automatically resizing the buffer space.
Please refer to the API doc for the fields prefixed with `flush_` to learn more. 

## Undocumented Symbols (TODO)
### cxBufferAppend
### cxBufferClear
### cxBufferCreate
### cxBufferDestroy
### cxBufferEnableFlushing
### cxBufferEof
### cxBufferFlush
### cxBufferFree
### cxBufferGet
### cxBufferInit
### cxBufferMinimumCapacity
### cxBufferPut
### cxBufferPutString
### cxBufferRead
### cxBufferReset
### cxBufferSeek
### cxBufferShift
### cxBufferShiftLeft
### cxBufferShiftRight
### cxBufferTerminate
### cxBufferWrite

mercurial