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

# fz_mem_zone_incr_ptr_short

Description

Resize a block of memory save number of elements in a short integer. This will reallocate a memory block in a memory zone by the specified size, where the size if the 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_short(

fzrt_zone_ptr | zone_ptr,
fzrt_ptr * | ptr,
short * | block_size,
fzrt_int | data_size,
short | 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 short. 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