| synopsis || arguments || prev || next |
void pre_alloc( bool use_shorts, int before, int after, int num_requests)
Java: void Pre_alloc( boolean use_shorts, int before, int after, int num_requests)
[Declared in "../coresys/common/kdu_sample_processing.h"]
Reserves enough storage for num_requests later calls to alloc16 (if use_shorts is true) or alloc32 (if use_shorts is false). Space is reserved such that each of these num_requests allocations can return an appropriately aligned pointer to an array which offers entries at locations n in the range - before <= n < after, where each entry is of type kdu_sample16 (if use_shorts=true) or kdu_sample32 (if use_shorts=false).