add advice to set the size of a buffer initialized with existing data

Fri, 20 Dec 2024 13:13:38 +0100

author
Mike Becker <universe@uap-core.de>
date
Fri, 20 Dec 2024 13:13:38 +0100
changeset 1029
c065d196a2c8
parent 1028
3e4905241838
child 1030
06091e067bee

add advice to set the size of a buffer initialized with existing data

src/cx/buffer.h file | annotate | diff | comparison | revisions
--- a/src/cx/buffer.h	Thu Dec 19 21:33:45 2024 +0100
+++ b/src/cx/buffer.h	Fri Dec 20 13:13:38 2024 +0100
@@ -165,6 +165,9 @@
  * you will need to cast the pointer, and you should set the
  * #CX_BUFFER_COPY_ON_WRITE flag.
  *
+ * You need to set the size manually after initialization, if
+ * you provide \p space which already contains data.
+ *
  * When you specify stack memory as \p space and decide to use
  * the auto-extension feature, you \em must use the
  * #CX_BUFFER_COPY_ON_EXTEND flag, instead of the

mercurial