pj_pool_callback typedef

pj_pool_callback = NativeFunction<Void Function(Pointer<pj_pool_t> pool, pj_size_t size)>

The type for function to receive callback from the pool when it is unable to allocate memory. The elegant way to handle this condition is to throw exception, and this is what is expected by most of this library components.

Implementation

typedef pj_pool_callback = ffi.NativeFunction<
    ffi.Void Function(ffi.Pointer<pj_pool_t> pool, pj_size_t size)>;