Memory module implementation file. More...

Go to the source code of this file.
Functions | |
| void * | mcl_memory_malloc (mcl_size_t size) |
| void * | mcl_memory_calloc (mcl_size_t count, mcl_size_t bytes) |
| void * | mcl_memory_realloc (void *p, mcl_size_t bytes) |
| void | mcl_memory_free (void *p) |
Memory module implementation file.
This module implements mcl_core/mcl_memory.h interface with standard C library.
Definition in file memory.c.
| void* mcl_memory_calloc | ( | mcl_size_t | count, |
| mcl_size_t | bytes | ||
| ) |
This function allocates memory and sets it to zero.
| count | Number of elements to be allocated. Total memory allocated will be (count* |
| bytes | Size of each element in bytes. |
Definition at line 24 of file memory.c.
Referenced by mcl_http_client_initialize().

| void mcl_memory_free | ( | void * | p | ) |
This function frees memory.
| p | Pointer to the memory to be freed. |
Definition at line 45 of file memory.c.
Referenced by _libcrypto_free(), json_util_initialize_json_library(), and mcl_http_client_initialize().

| void* mcl_memory_malloc | ( | mcl_size_t | size | ) |
This function allocates memory.
| size | Size of the memory to be allocated in bytes. |
Definition at line 14 of file memory.c.
Referenced by _libcrypto_malloc(), json_util_initialize_json_library(), and mcl_http_client_initialize().

| void* mcl_memory_realloc | ( | void * | p, |
| mcl_size_t | bytes | ||
| ) |
This function reallocates memory.
| p | Pointer to the memory to be reallocated. |
| bytes | Size of the memory to be reallocated in bytes. |
Definition at line 34 of file memory.c.
Referenced by _libcrypto_realloc(), and mcl_http_client_initialize().
