src/cx/buffer.h

changeset 1572
0499bf03aef3
parent 1571
25ead2ffb9b5
equal deleted inserted replaced
1571:25ead2ffb9b5 1572:0499bf03aef3
85 * After performing the copy, the flag is automatically cleared. 85 * After performing the copy, the flag is automatically cleared.
86 * This flag has no effect on buffers which do not have #CX_BUFFER_AUTO_EXTEND set, which is why 86 * This flag has no effect on buffers which do not have #CX_BUFFER_AUTO_EXTEND set, which is why
87 * buffers automatically admit the auto-extend flag when initialized with copy-on-extend enabled. 87 * buffers automatically admit the auto-extend flag when initialized with copy-on-extend enabled.
88 */ 88 */
89 #define CX_BUFFER_COPY_ON_EXTEND 0x08 89 #define CX_BUFFER_COPY_ON_EXTEND 0x08
90
91 /**
92 * If this flag is enabled, the buffer will never free its contents regardless of #CX_BUFFER_FREE_CONTENTS.
93 *
94 * This is useful, for example, when you want to keep a pointer to the data after destroying the buffer.
95 */
96 #define CX_BUFFER_DO_NOT_FREE 0x10
90 97
91 /** 98 /**
92 * Function pointer for cxBufferWrite that is compatible with cx_write_func. 99 * Function pointer for cxBufferWrite that is compatible with cx_write_func.
93 * @see cx_write_func 100 * @see cx_write_func
94 */ 101 */

mercurial