silc_buffer_scopy
SYNOPSIS
static inline SilcBuffer silc_buffer_scopy(SilcStack stack, SilcBuffer sb);
DESCRIPTION
Generates copy of a SilcBuffer. This copies everything inside the currently valid data area, nothing more. Use silc_buffer_clone to copy entire 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.