library/src/mmap/BP-MMapAllocator.cc
// reallocate memory (requires an old size pointer because this isn't
// managed heap memory).
reallocate memory (requires an old size pointer because this isn't
managed heap memory).
reallocate memory ( requires an old size pointer because this isn ' t managed heap memory ) .
void * mmap_realloc(void * ptr, size_t new_size, size_t old_size)
{
	void * allocation = mmap_calloc(new_size, 1);
	if(!allocation)
		return NULL;
	memcpy(allocation, ptr, old_size);
	return NULL;
}
void * mmap_realloc ( void * ptr , size_t new_size , size_t old_size ) { void * allocation = mmap_calloc ( new_size , 1 ) ; if ( ! allocation ) return NULL ; memcpy ( allocation , ptr , old_size ) ; return NULL ; }
reallocate memory (requires an old size pointer because this isn't
managed heap memory).
reallocate memory ( requires an old size pointer because this isn ' t managed heap memory ) .
// create new allocation // copy in new data // return indicating null