X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libmemcached%2Fmemcached_memory_allocators.html;fp=libmemcached%2Fmemcached_memory_allocators.html;h=78159a9fb9f73be431af1c8536243854be3db18b;hb=5fe34bb79f817fe734d3e300720ac8a361454f39;hp=e9aec619121ce82be6bd302f491364bd37bfdd6c;hpb=badbdc8dcc3a2e9fbbd65b4436c3f953bd7b0f07;p=m6w6%2Flibmemcached diff --git a/libmemcached/memcached_memory_allocators.html b/libmemcached/memcached_memory_allocators.html index e9aec619..78159a9f 100644 --- a/libmemcached/memcached_memory_allocators.html +++ b/libmemcached/memcached_memory_allocators.html @@ -1,7 +1,8 @@ - + +
@@ -11,33 +12,31 @@ - - - - - + - - - - + + + + + + + + - + @@ -52,7 +51,7 @@ - libmemcached + libmemcached @@ -79,7 +78,6 @@ -Manage memory allocator functions
Compile and link with -lmemcached
-memcached_set_memory_allocators
(memcached_st *ptr, memcached_malloc_fn mem_malloc, memcached_free_fn mem_free, memcached_realloc_fn mem_realloc, memcached_calloc_fn mem_calloc, void *context)¶ptr -- pointer to an initialized memcached_st
struct
mem_malloc -- pointer to a memcached_malloc_fn
callback
mem_free -- pointer to a memcached_free_fn
callback
mem_realloc -- pointer to a memcached_realloc_fn
callback
mem_calloc -- pointer to a memcached_calloc_fn
callback
context -- pointer to a user supplied context
memcached_set_memory_allocators
(memcached_st *ptr, memcached_malloc_fn mem_malloc, memcached_free_fn mem_free, memcached_realloc_fn mem_realloc, memcached_calloc_fn mem_calloc, void *context)¶Parameters: |
|
+
---|---|
Returns: |
|
+
memcached_get_memory_allocators
(memcached_st *ptr, memcached_malloc_fn *mem_malloc, memcached_free_fn *mem_free, memcached_realloc_fn *mem_realloc, memcached_calloc_fn *mem_calloc)¶ptr -- pointer to an initialized memcached_st
struct
mem_malloc -- pointer to store the address of the memcached_malloc_fn
callback
mem_free -- pointer to store the address of the memcached_free_fn
callback
mem_realloc -- pointer to store the address of the memcached_realloc_fn
callback
mem_calloc -- pointer to store the address of the memcached_calloc_fn
callback
memcached_get_memory_allocators
(memcached_st *ptr, memcached_malloc_fn *mem_malloc, memcached_free_fn *mem_free, memcached_realloc_fn *mem_realloc, memcached_calloc_fn *mem_calloc)¶Parameters: |
|
+
---|
memcached_get_memory_allocators_context
(const memcached_st *ptr)¶ptr -- pointer to an initialized memcached_st
struct
pointer to the user supplied context
-memcached_get_memory_allocators_context
(const memcached_st *ptr)¶Parameters: | ptr -- pointer to an initialized memcached_st struct |
+
---|---|
Returns: | pointer to the user supplied context | +
memcached_malloc_fn
)(memcached_st *ptr, const size_t size, void *context)¶ptr -- pointer to an initialized memcached_st
struct
size -- the number of bytes to allocate
context -- pointer to the user supplied context
memcached_malloc_fn
)(memcached_st *ptr, const size_t size, void *context)¶Parameters: |
pointer to at least |
+
---|---|
Returns: | pointer to at least |
+
memcached_realloc_fn
)(memcached_st *ptr, void *mem, const size_t size, void *context)¶ptr -- pointer to an initialized memcached_st
struct
mem -- pointer to previously allocated memory
size -- the number of bytes to allocate
context -- pointer to the user supplied context
memcached_realloc_fn
)(memcached_st *ptr, void *mem, const size_t size, void *context)¶Parameters: |
pointer to at least |
+
---|---|
Returns: | pointer to at least |
+
memcached_free_fn
)(memcached_st *ptr, void *mem, void *context)¶ptr -- pointer to an initialized memcached_st
struct
mem -- pointer to previously allocated memory
context -- pointer to the user supplied context
memcached_free_fn
)(memcached_st *ptr, void *mem, void *context)¶Parameters: |
|
+
---|
memcached_calloc_fn
)(memcached_st *ptr, size_t nelem, const size_t elsize, void *context)¶ptr -- pointer to an initialized memcached_st
struct
nelem -- number of elements to allocate
elsize -- the number of bytes to allocate per element
context -- pointer to the user supplied context
memcached_calloc_fn
)(memcached_st *ptr, size_t nelem, const size_t elsize, void *context)¶Parameters: |
pointer to at least |
+
---|---|
Returns: | pointer to at least |
+
- - © Copyright
- - - - Built with Sphinx using a - - theme - - provided by Read the Docs. + Built with Sphinx using a theme provided by Read the Docs. @@ -410,6 +424,7 @@ and jQuery(function () { SphinxRtdTheme.Navigation.enable(true);