X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=docs%2Fmemcached_result_st.rst;h=9b60f1872fe908bfba56c7bad1d3b0acf16147ca;hb=1adc67d1609fd71308b822e153dcb08ad7fbf9c2;hp=3cd9afe2bd873060ebe88a79c5de3cb3280d56f1;hpb=e9f6b3a74c34ed25d0680d2b333f235098b44c93;p=awesomized%2Flibmemcached diff --git a/docs/memcached_result_st.rst b/docs/memcached_result_st.rst index 3cd9afe2..9b60f187 100644 --- a/docs/memcached_result_st.rst +++ b/docs/memcached_result_st.rst @@ -20,6 +20,8 @@ SYNOPSIS .. c:function:: const char *memcached_result_value (memcached_result_st *ptr) +.. c:function:: char *memcached_result_take_value (memcached_result_st *ptr) + .. c:function:: size_t memcached_result_length (const memcached_result_st *ptr) .. c:function:: uint32_t memcached_result_flags (const memcached_result_st *result) @@ -67,6 +69,11 @@ the current result object. :c:func:`memcached_result_value` returns the result value associated with the current result object. +:c:func:`memcached_result_take_value` returns and hands over the result value +associated with the current result object. You must call free() to release this +value, unless you have made use of a custom allocator. Use of a custom +allocator requires that you create your own custom free() to release it. + :c:func:`memcached_result_length` returns the result length associated with the current result object.