Use base64 from simdutf8

This commit is contained in:
2025-08-15 16:48:32 -04:00
parent f6fbb3b3f0
commit a119f5232b
3 changed files with 40 additions and 61 deletions

View File

@@ -227,7 +227,8 @@ public:
* @param ptr Pointer to the existing allocation (must be from this allocator)
* @param old_size Size of the existing allocation in bytes
* @param new_size Desired new size in bytes
* @param alignment Required alignment
* @param alignment Required alignment. Defaults to
* `alignof(std::max_align_t)`
* @return Pointer to the reallocated memory (may be the same as ptr or
* different)
* @throws std::bad_alloc if memory allocation fails
@@ -253,7 +254,7 @@ public:
* - When copying to new location, uses the specified alignment
*/
void *realloc_raw(void *ptr, uint32_t old_size, uint32_t new_size,
uint32_t alignment);
uint32_t alignment = alignof(std::max_align_t));
/**
* @brief Type-safe version of realloc_raw for arrays of type T.