src/cx/buffer.h

changeset 1318
12fa1d37fe48
parent 1291
5942859fd76c
equal deleted inserted replaced
1317:eeb2fc3850e2 1318:12fa1d37fe48
220 * @param space pointer to the memory area, or @c NULL to allocate 220 * @param space pointer to the memory area, or @c NULL to allocate
221 * new memory 221 * new memory
222 * @param capacity the capacity of the buffer 222 * @param capacity the capacity of the buffer
223 * @param allocator the allocator this buffer shall use for automatic 223 * @param allocator the allocator this buffer shall use for automatic
224 * memory management 224 * memory management
225 * (if @c NULL, a default stdlib allocator will be used) 225 * (if @c NULL, the cxDefaultAllocator will be used)
226 * @param flags buffer features (see cx_buffer_s.flags) 226 * @param flags buffer features (see cx_buffer_s.flags)
227 * @return zero on success, non-zero if a required allocation failed 227 * @return zero on success, non-zero if a required allocation failed
228 */ 228 */
229 cx_attr_nonnull_arg(1) 229 cx_attr_nonnull_arg(1)
230 cx_attr_export 230 cx_attr_export
303 * @param space pointer to the memory area, or @c NULL to allocate 303 * @param space pointer to the memory area, or @c NULL to allocate
304 * new memory 304 * new memory
305 * @param capacity the capacity of the buffer 305 * @param capacity the capacity of the buffer
306 * @param allocator the allocator to use for allocating the structure and the automatic 306 * @param allocator the allocator to use for allocating the structure and the automatic
307 * memory management within the buffer 307 * memory management within the buffer
308 * (if @c NULL, a default stdlib allocator will be used) 308 * (if @c NULL, the cxDefaultAllocator will be used)
309 * @param flags buffer features (see cx_buffer_s.flags) 309 * @param flags buffer features (see cx_buffer_s.flags)
310 * @return a pointer to the buffer on success, @c NULL if a required allocation failed 310 * @return a pointer to the buffer on success, @c NULL if a required allocation failed
311 */ 311 */
312 cx_attr_malloc 312 cx_attr_malloc
313 cx_attr_dealloc(cxBufferFree, 1) 313 cx_attr_dealloc(cxBufferFree, 1)

mercurial