silc_buffer_steal

SYNOPSIS

    static inline
    unsigned char *silc_buffer_steal(SilcBuffer sb, SilcUInt32 *data_len);

DESCRIPTION

Steals the data from the buffer `sb'. This returns pointer to the start of the buffer and the true length of that buffer. The `sb' cannot be used anymore after calling this function because the data buffer was stolen. The `sb' must be freed with silc_buffer_free. The caller is responsible of freeing the stolen data buffer with silc_free.