X-Git-Url: https://git.saurik.com/apple/libc.git/blobdiff_plain/3d9156a7a519a5e3aa1b92e9d9d4b991f1aed7ff..b5d655f7532a546b54809da387f7467d128a756b:/include/malloc/malloc.h diff --git a/include/malloc/malloc.h b/include/malloc/malloc.h index 965bbe0..5db543d 100644 --- a/include/malloc/malloc.h +++ b/include/malloc/malloc.h @@ -88,6 +88,9 @@ extern malloc_zone_t *malloc_zone_from_ptr(const void *ptr); extern size_t malloc_size(const void *ptr); /* Returns size of given ptr */ +extern size_t malloc_good_size(size_t size); + /* Returns number of bytes greater than or equal to size that can be allocated without padding */ + /********* Batch methods ************/ extern unsigned malloc_zone_batch_malloc(malloc_zone_t *zone, size_t size, void **results, unsigned num_requested);