API C/C++
HSM Dinamo
Loading...
Looking for...
No entries found
Memory

Detailed description

Memory allocation and deallocation.

Functions

void *AAP_API DAlloc(DWORD dwsize)
 
void AAP_API DFree (void *p)
 

Functions

DAlloc()

void *AAP_API DAlloc ( DWORD dwsize)

#include <dinamo.h>

Allocates a memory buffer according to the specified size.

Parameters
[in]dwsizeSize, in bytes, of the memory to be allocated.
Return
The function returns a pointer, of type void, to the allocated memory region. If this is not possible, the return will be ZERO (NULL).
Notes
The memory allocated by DAlloc must be freed using the DFree() function.
See also
DFree()
Examples
download_log.c.

DFree()

void AAP_API DFree ( void * p)

#include <dinamo.h>

Releases a memory buffer previously allocated by DAlloc().

Parameters
[in]pMemory region previously allocated by DAlloc()
Return
It does not return a value.
Examples
download_log.c, gen_csr.c, import_export_bchain.c, post_put_get_delete_pix.c, sign_verify_dict.c, sign_verify_pix.c, sign_verify_xml.c, spb_gen_key_csr.c and spb_get_cert.c.