GNU Info

Info Node: (gpgme.info)Destroying Data Buffers

(gpgme.info)Destroying Data Buffers


Next: Manipulating Data Buffers Prev: Creating Data Buffers Up: Exchanging Data
Enter node , (file) or (file)node

Destroying Data Buffers
=======================

 - Function: void gpgme_data_release (GpgmeData DH)
     The function `gpgme_data_release' destroys the data object with
     the handle DH.  It releases all associated resources that were not
     provided by the user in the first place.

 - Function: char * gpgme_data_release_and_get_mem (GpgmeData DH,
          size_t *LENGTH)
     The function `gpgme_data_release_and_get_mem' is like
     `gpgme_data_release', except that it returns the data buffer and
     its length that was provided by the object.

     The user has to release the buffer with `free'.  In case the user
     provided the data buffer in non-copy mode, a copy will be made for
     this purpose.

     In case an error returns, or there is no suitable data buffer that
     can be returned to the user, the function will return `NULL'.


automatically generated by info2www version 1.2.2.9