Lines Matching defs:malloc_func
3586 // You can pass the C stdlib's malloc as the malloc_func.
3592 wuffs_base__malloc_slice_u8(void* (*malloc_func)(size_t), uint64_t num_u8) {
3593 if (malloc_func && (num_u8 <= (SIZE_MAX / sizeof(uint8_t)))) {
3594 void* p = (*malloc_func)((size_t)(num_u8 * sizeof(uint8_t)));
3603 wuffs_base__malloc_slice_u16(void* (*malloc_func)(size_t), uint64_t num_u16) {
3604 if (malloc_func && (num_u16 <= (SIZE_MAX / sizeof(uint16_t)))) {
3605 void* p = (*malloc_func)((size_t)(num_u16 * sizeof(uint16_t)));
3614 wuffs_base__malloc_slice_u32(void* (*malloc_func)(size_t), uint64_t num_u32) {
3615 if (malloc_func && (num_u32 <= (SIZE_MAX / sizeof(uint32_t)))) {
3616 void* p = (*malloc_func)((size_t)(num_u32 * sizeof(uint32_t)));
3625 wuffs_base__malloc_slice_u64(void* (*malloc_func)(size_t), uint64_t num_u64) {
3626 if (malloc_func && (num_u64 <= (SIZE_MAX / sizeof(uint64_t)))) {
3627 void* p = (*malloc_func)((size_t)(num_u64 * sizeof(uint64_t)));