create_pool property

Pointer<NativeFunction<Pointer<pj_pool_t> Function(Pointer<pj_pool_factory> factory1, Pointer<Char> name, pj_size_t initial_size, pj_size_t increment_size, Pointer<pj_pool_callback> callback)>> create_pool
getter/setter pair

Create a new pool from the pool factory.

@param factory The pool factory. @param name the name to be assigned to the pool. The name should not be longer than PJ_MAX_OBJ_NAME (32 chars), or otherwise it will be truncated. @param initial_size the size of initial memory blocks taken by the pool. Note that the pool will take 68+20 bytes for administrative area from this block. @param increment_size the size of each additional blocks to be allocated when the pool is running out of memory. If user requests memory which is larger than this size, then an error occurs. Note that each time a pool allocates additional block, it needs 20 bytes (equal to sizeof(pj_pool_block)) to store some administrative info. @param callback Cllback to be called when error occurs in the pool. Note that when an error occurs during pool creation, the callback itself is not called. Instead, NULL will be returned.

@return the memory pool, or NULL.

Implementation

external ffi.Pointer<
    ffi.NativeFunction<
        ffi.Pointer<pj_pool_t> Function(
            ffi.Pointer<pj_pool_factory> factory1,
            ffi.Pointer<ffi.Char> name,
            pj_size_t initial_size,
            pj_size_t increment_size,
            ffi.Pointer<pj_pool_callback> callback)>> create_pool;