silc_buffer_sclone
SYNOPSIS
static inline SilcBuffer silc_buffer_sclone(SilcStack stack, SilcBuffer sb);
DESCRIPTION
Clones SilcBuffer. This generates new SilcBuffer and copies everything from the source buffer. The result is exact clone of the original buffer. Returns NULL if system is out of memory.
This routine use SilcStack are memory source. If `stack' is NULL reverts back to normal allocating routine.
Note that this call consumes the `stack'. The caller should push the stack before calling the function and pop it later.