| synopsis || arguments || prev || next |

kdu_sample_allocator::pre_alloc

Java: Kdu_sample_allocator::Pre_alloc

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"]

Go to class description.


Synopsis

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).


Arguments

use_shorts [bool]

before [int]

after [int]

num_requests [int]


| top || synopsis || arguments || prev || next |