This commit is contained in:
@@ -23,6 +23,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
|
||||
- Switched to using `wpMiscUtilsRotl64` in `xorshift`
|
||||
- Remove all uses of names starting with underscore
|
||||
- Ensure `wpArrayClear` memsets members to 0
|
||||
|
||||
## [2.4.0] - 2026-08-30
|
||||
|
||||
|
||||
@@ -214,6 +214,7 @@ void arrayClear(WpArray array, u64 item_size) {
|
||||
|
||||
WpArrayHeader *header = arrayHeader(array);
|
||||
header->count = 0;
|
||||
memset(array, 0, header->capacity * header->item_size);
|
||||
}
|
||||
|
||||
u64 arrayCalcAllocSize(u64 capacity, u64 item_size) {
|
||||
|
||||
@@ -200,18 +200,18 @@ void arrayAppendCapped(WpArray array, void *value, u64 item_size);
|
||||
void arrayExtendCappend(WpArray dst, const WpArray src, u64 item_size);
|
||||
void arrayCopyCapped(WpArray dst, const WpArray src, u64 item_size);
|
||||
WpArray arrayAppendAlloc(const WpAllocator *allocator, WpArray array, void *value,
|
||||
WpArrayInitFlags flags, u64 item_size);
|
||||
WpArrayInitFlags flags, u64 item_size);
|
||||
WpArray arrayExtendAlloc(const WpAllocator *allocator, WpArray dst, const WpArray src,
|
||||
WpArrayInitFlags flags, u64 item_size);
|
||||
WpArrayInitFlags flags, u64 item_size);
|
||||
WpArray arrayCopyAlloc(const WpAllocator *allocator, WpArray dst, const WpArray src,
|
||||
WpArrayInitFlags flags, u64 item_size);
|
||||
WpArrayInitFlags flags, u64 item_size);
|
||||
void *arrayPop(WpArray array, u64 item_size);
|
||||
void arrayClear(WpArray array, u64 item_size);
|
||||
u64 arrayCalcAllocSize(u64 capacity, u64 item_size);
|
||||
WpArray arrayAllocCapacity(const WpAllocator *allocator, u64 capacity, WpArrayInitFlags flags,
|
||||
u64 item_size);
|
||||
u64 item_size);
|
||||
WpArray arrayFromPreallocatedBuffer(void *buffer, u64 buffer_size, WpArrayInitFlags flags,
|
||||
u64 item_size);
|
||||
u64 item_size);
|
||||
void arrayDealloc(const WpAllocator *allocator, WpArray *array, u64 item_size);
|
||||
|
||||
#ifdef WP_PLATFORM_CPP
|
||||
|
||||
Reference in New Issue
Block a user