1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- #ifndef THIRD_PARTY_APPLE_APSL_CFBASE_H_
- #define THIRD_PARTY_APPLE_APSL_CFBASE_H_
- #include "CFRuntime.h"
- struct ChromeCFAllocatorLions {
- ChromeCFRuntimeBase _base;
- #if DEPLOYMENT_TARGET_MACOSX || DEPLOYMENT_TARGET_EMBEDDED
- size_t (*size)(struct _malloc_zone_t *zone, const void *ptr);
- void *(*malloc)(struct _malloc_zone_t *zone, size_t size);
- void *(*calloc)(struct _malloc_zone_t *zone, size_t num_items, size_t size);
- void *(*valloc)(struct _malloc_zone_t *zone, size_t size);
- void (*free)(struct _malloc_zone_t *zone, void *ptr);
- void *(*realloc)(struct _malloc_zone_t *zone, void *ptr, size_t size);
- void (*destroy)(struct _malloc_zone_t *zone);
- const char *zone_name;
-
- unsigned (*batch_malloc)(struct _malloc_zone_t *zone, size_t size, void **results, unsigned num_requested);
- void (*batch_free)(struct _malloc_zone_t *zone, void **to_be_freed, unsigned num_to_be_freed);
- struct malloc_introspection_t *introspect;
- unsigned version;
-
-
- void *(*memalign)(struct _malloc_zone_t *zone, size_t alignment, size_t size);
-
-
- void (*free_definite_size)(struct _malloc_zone_t *zone, void *ptr, size_t size);
- #endif
- CFAllocatorRef _allocator;
- CFAllocatorContext _context;
- };
- #endif
|