formZ SDK | 5.0 API Reference | System | Runtime Library (FZRT) | Memory

fz_mem_zone_incr_ptr

Description

This will reallocate a memory block in a memory zone by the specified size, where size is calculated by data_size*(block_size+incr). The block size is updated to the newly reallocated number of data elements

Plugin Prototype

fzrt_error_td fz_mem_zone_incr_ptr(

fzrt_zone_ptr

zone_ptr,

fzrt_ptr *

ptr,

fzrt_int *

block_size,

fzrt_int

data_size,

fzrt_int

incr )

Parameters

zone_ptr [Input]

mem zone that pointer is a member of

ptr [Input]

pointer to memory of which to increase the size

block_size [Input, Result]

pointer to an fzrt_int. On input this is the current size of elements in the pointer, on exit this is updated by the increment

data_size [Input]

the size of the data elements

incr [Input]

the number of data elements to increase the size by

Returns

FZRT_NOERR on success, error ID otherwise.

Availability

5.0.0.0

See Also

fz_mem_zone_incr_ptr_long,

Function Set

fz_fzrt_mem_fset


Defined in

fzrt_api.h