Imported Upstream version 1.0.0
[platform/upstream/nghttp2.git] / doc / nghttp2_hd_inflate_new2.rst
1
2 nghttp2_hd_inflate_new2
3 =======================
4
5 Synopsis
6 --------
7
8 *#include <nghttp2/nghttp2.h>*
9
10 .. function:: int nghttp2_hd_inflate_new2(nghttp2_hd_inflater **inflater_ptr, nghttp2_mem *mem)
11
12     
13     Like `nghttp2_hd_inflate_new()`, but with additional custom memory
14     allocator specified in the *mem*.
15     
16     The *mem* can be ``NULL`` and the call is equivalent to
17     `nghttp2_hd_inflate_new()`.
18     
19     This function does not take ownership *mem*.  The application is
20     responsible for freeing *mem*.
21     
22     The library code does not refer to *mem* pointer after this
23     function returns, so the application can safely free it.