Function

Gcrsecure_memory_try_alloc

Declaration [src]

gpointer
gcr_secure_memory_try_alloc (
  gsize size
)

Description [src]

Allocate a block of non-pageable memory.

If non-pageable memory cannot be allocated, then NULL is returned.

Parameters

size gsize
 

New desired size of the memory block.

Return value

Returns: gpointer
 

New block, or NULL if memory cannot be allocated; memory block should be freed with gcr_secure_memory_free()