neo4j_memory_allocator.calloc

Allocate memory for consecutive objects from this allocator.

Allocates contiguous space for multiple objects of the specified size, and fills the space with bytes of value zero.

@param self This allocator. @param context An opaque 'context' for the allocation, which an allocator may use to try an optimize storage as memory allocated with the same context is likely (but not guaranteed) to be all deallocated at the same time. Context may be NULL, in which case it does not offer any guidance on deallocation. @param count The number of objects to allocate. @param size The size (in bytes) of each object. @return A pointer to the allocated memory, or NULL on error (errno will be set).

struct neo4j_memory_allocator
void* function(neo4j_memory_allocator* self, void* context, size_t count, size_t size) calloc;

Meta