clone_data property

Pointer<NativeFunction<Pointer<Void> Function(Pointer<pj_pool_t> pool, Pointer<Void> data, UnsignedInt len)>> clone_data
getter/setter pair

Clone the data part only of this message body. Note that this only duplicates the data part of the body instead of the whole message body. If application wants to duplicate the entire message body structure, it must call #pjsip_msg_body_clone().

@param pool Pool used to clone the data. @param data The data inside message body, to be cloned. @param len The length of the data.

@return New data duplicated from the original data.

Implementation

external ffi.Pointer<
    ffi.NativeFunction<
        ffi.Pointer<ffi.Void> Function(ffi.Pointer<pj_pool_t> pool,
            ffi.Pointer<ffi.Void> data, ffi.UnsignedInt len)>> clone_data;