chenqiyang
2022-09-02 6a99d9bf65aa5878cb409945ed2bdbdcb916d047
Shared.IOS.HDLLinphoneSDK/Shared.IOS.HDLLinphoneSDK/Library/linphone.framework/Headers/buffer.h
old mode 100644 new mode 100755
@@ -36,98 +36,98 @@
/**
 * Create a new empty #LinphoneBuffer object.
 * @return A new #LinphoneBuffer object.
 * @return A new #LinphoneBuffer object. @notnil
 */
LINPHONE_PUBLIC LinphoneBuffer * linphone_buffer_new(void);
/**
 * Create a new #LinphoneBuffer object from existing data.
 * @param[in] data The initial data to store in the LinphoneBuffer.
 * @param[in] size The size of the initial data to stroe in the LinphoneBuffer.
 * @return A new #LinphoneBuffer object.
 * @param data The initial data to store in the LinphoneBuffer. @notnil
 * @param size The size of the initial data to stroe in the LinphoneBuffer.
 * @return A new #LinphoneBuffer object. @notnil
 */
LINPHONE_PUBLIC LinphoneBuffer * linphone_buffer_new_from_data(const uint8_t *data, size_t size);
/**
 * Create a new #LinphoneBuffer object from a string.
 * @param[in] data The initial string content of the LinphoneBuffer.
 * @return A new #LinphoneBuffer object.
 * @param data The initial string content of the LinphoneBuffer. @notnil
 * @return A new #LinphoneBuffer object. @notnil
 */
LINPHONE_PUBLIC LinphoneBuffer * linphone_buffer_new_from_string(const char *data);
/**
 * Acquire a reference to the buffer.
 * @param[in] buffer #LinphoneBuffer object.
 * @return The same #LinphoneBuffer object.
 * @param buffer #LinphoneBuffer object. @notnil
 * @return The same #LinphoneBuffer object. @notnil
**/
LINPHONE_PUBLIC LinphoneBuffer * linphone_buffer_ref(LinphoneBuffer *buffer);
/**
 * Release reference to the buffer.
 * @param[in] buffer #LinphoneBuffer object.
 * @param buffer #LinphoneBuffer object. @notnil
**/
LINPHONE_PUBLIC void linphone_buffer_unref(LinphoneBuffer *buffer);
/**
 * Retrieve the user pointer associated with the buffer.
 * @param[in] buffer #LinphoneBuffer object.
 * @return The user pointer associated with the buffer.
 * @param buffer #LinphoneBuffer object. @notnil
 * @return The user pointer associated with the buffer. @maybenil
**/
LINPHONE_PUBLIC void *linphone_buffer_get_user_data(const LinphoneBuffer *buffer);
/**
 * Assign a user pointer to the buffer.
 * @param[in] buffer #LinphoneBuffer object.
 * @param[in] ud The user pointer to associate with the buffer.
 * @param buffer #LinphoneBuffer object. @notnil
 * @param user_data The user pointer to associate with the buffer. @maybenil
**/
LINPHONE_PUBLIC void linphone_buffer_set_user_data(LinphoneBuffer *buffer, void *ud);
LINPHONE_PUBLIC void linphone_buffer_set_user_data(LinphoneBuffer *buffer, void *user_data);
/**
 * Get the content of the data buffer.
 * @param[in] buffer #LinphoneBuffer object.
 * @return The content of the data buffer.
 * @param buffer #LinphoneBuffer object. @notnil
 * @return The content of the data buffer.  @notnil
 */
LINPHONE_PUBLIC const uint8_t * linphone_buffer_get_content(const LinphoneBuffer *buffer);
/**
 * Set the content of the data buffer.
 * @param[in] buffer #LinphoneBuffer object.
 * @param[in] content The content of the data buffer.
 * @param[in] size The size of the content of the data buffer.
 * @param buffer #LinphoneBuffer object. @notnil
 * @param content The content of the data buffer. @notnil
 * @param size The size of the content of the data buffer.
 */
LINPHONE_PUBLIC void linphone_buffer_set_content(LinphoneBuffer *buffer, const uint8_t *content, size_t size);
/**
 * Get the string content of the data buffer.
 * @param[in] buffer #LinphoneBuffer object
 * @return The string content of the data buffer.
 * @param buffer #LinphoneBuffer object
 * @return The string content of the data buffer. @notnil
 */
LINPHONE_PUBLIC const char * linphone_buffer_get_string_content(const LinphoneBuffer *buffer);
/**
 * Set the string content of the data buffer.
 * @param[in] buffer #LinphoneBuffer object.
 * @param[in] content The string content of the data buffer.
 * @param buffer #LinphoneBuffer object. @notnil
 * @param content The string content of the data buffer. @notnil
 */
LINPHONE_PUBLIC void linphone_buffer_set_string_content(LinphoneBuffer *buffer, const char *content);
/**
 * Get the size of the content of the data buffer.
 * @param[in] buffer #LinphoneBuffer object.
 * @param buffer #LinphoneBuffer object. @notnil
 * @return The size of the content of the data buffer.
 */
LINPHONE_PUBLIC size_t linphone_buffer_get_size(const LinphoneBuffer *buffer);
/**
 * Set the size of the content of the data buffer.
 * @param[in] buffer #LinphoneBuffer object
 * @param[in] size The size of the content of the data buffer.
 * @param buffer #LinphoneBuffer object @notnil
 * @param size The size of the content of the data buffer.
 */
LINPHONE_PUBLIC void linphone_buffer_set_size(LinphoneBuffer *buffer, size_t size);
/**
 * Tell whether the #LinphoneBuffer is empty.
 * @param[in] buffer #LinphoneBuffer object
 * @param buffer #LinphoneBuffer object @notnil
 * @return A boolean value telling whether the #LinphoneBuffer is empty or not.
 */
LINPHONE_PUBLIC bool_t linphone_buffer_is_empty(const LinphoneBuffer *buffer);