ucx/buffer.h

changeset 169
279dd3ca7a77
parent 168
24a012440dee
child 177
11ad03783baf
equal deleted inserted replaced
168:24a012440dee 169:279dd3ca7a77
95 * <code>space</code>. Then this function will allocate the space and enforce 95 * <code>space</code>. Then this function will allocate the space and enforce
96 * the #UCX_BUFFER_AUTOFREE flag. 96 * the #UCX_BUFFER_AUTOFREE flag.
97 * 97 *
98 * @param space pointer to the memory area, or <code>NULL</code> to allocate 98 * @param space pointer to the memory area, or <code>NULL</code> to allocate
99 * new memory 99 * new memory
100 * @param size the size of the buffer 100 * @param capacity the capacity of the buffer
101 * @param flags buffer features (see UcxBuffer.flags) 101 * @param flags buffer features (see UcxBuffer.flags)
102 * @return the new buffer 102 * @return the new buffer
103 */ 103 */
104 UcxBuffer *ucx_buffer_new(void *space, size_t size, int flags); 104 UcxBuffer *ucx_buffer_new(void *space, size_t capacity, int flags);
105 105
106 /** 106 /**
107 * Destroys a buffer. 107 * Destroys a buffer.
108 * 108 *
109 * If the #UCX_BUFFER_AUTOFREE feature is enabled, the contents of the buffer 109 * If the #UCX_BUFFER_AUTOFREE feature is enabled, the contents of the buffer

mercurial