Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-12-23Remove BLI_buffer calloc optionCampbell Barton
This wasn't working reliably (after clear for example), and wasn't used anywhere.
2015-12-23Fix BLI_buffer_reinit not clearing static flagCampbell Barton
2015-12-23Fix error in BLI_buffer_reinitCampbell Barton
alloc_size was set incorrectly causing arrays not to be resized correctly.
2015-12-21Cleanup: warnings (msvc)Campbell Barton
Part of patch D1670 by @LazyDodo
2015-10-04Correct last commit, check before freeingCampbell Barton
2015-10-04BLI_Buffer: add BLI_buffer_reinitCampbell Barton
Useful for re-using a buffer when the existing data can be thrown away.
2015-10-04BLI_Buffer: support over 2gb allocationsCampbell Barton
Also move comment to C-source and enumerate useful features.
2015-10-04BLI_Buffer: fix BLI_buffer_resize w/ calloc flagCampbell Barton
When resizing, zero memory when the calloc flag is set, even when no realloc is done.
2014-10-05BLI_buffer: simplify buffer resizeCampbell Barton
2013-09-12code cleanup: headers - doxy comments.Campbell Barton
2013-08-04avoid using MEM_reallocN_id directly, add utility macro for freeing.Campbell Barton
2013-03-16changes to BLI_bufferCampbell Barton
- assert if BLI_buffer_at() is called with an out of bounds value. - add BLI_buffer_resize_data() macro which resizes and returns a pointer to the new array. - warn if missing call to BLI_buffer_free().
2013-01-02extend BLI_bufferCampbell Barton
- add option to calloc or not, existing code wasnt consistent here, would calloc on first alloc but not on realloc, also - the static memory was never zero'd. use flag BLI_BUFFER_USE_CALLOC to ensure all new memory is zero'd (static/alloc/realloc's). - add BLI_buffer_declare_static / BLI_buffer_declare so its possible to have a buffer that never uses static memory.
2012-12-30Add BLI_buffer, an alternative to BLI_arrayNicholas Bishop
BLI_buffer is a dynamic homogeneous array similar to BLI_array, but it allocates a structure that can be passed around making it possible to resize the array outside the function it was declared in.