Function ngx_list_init

Source
pub unsafe fn ngx_list_init(
    list: *mut ngx_list_t,
    pool: *mut ngx_pool_s,
    n: usize,
    size: usize,
) -> isize
Expand description

Initialize a list, using a pool for the backing memory, with capacity to store the given number of elements and element size.

ยงSafety

  • list must be non-null
  • pool must be a valid pool