formZ SDK | 5.0 API Reference | System | Runtime Library (FZRT) | Memory
Description
Reallocates a memory block. This will reallocate a memory block from a mem zone. The mem zone can be either static or dynamic, or NULL. If the mem zone is NULL, the call is the same a . The memory must be reallocated using the same mem zone that it was allocated with.
Plugin Prototype
fzrt_error_td fz_mem_zone_realloc(
zone_ptr, | |
fzrt_ptr * | ptr, |
fzrt_int | size ) |
Parameters
zone_ptr [Input]
mem zone to allocate memory from, NULL to release from
ptr [Input, Result]
pointer to pointer to memory to reallocate. On exit contains the new pointer to reallocated memory
size [Input]
desired new size of memory block
Returns
FZRT_NOERR on success, error ID otherwise.
Availability
5.0.0.0
See Also
, fz_mem_zone_static_init, fz_mem_zone_alloc
Function Set
Defined in