silc_buffer_srealloc_size

SYNOPSIS

    static inline
    SilcBuffer silc_buffer_srealloc_size(SilcStack stack,
                                         SilcBuffer sb, SilcUInt32 newsize);

DESCRIPTION

Same as silc_buffer_srealloc but moves moves the tail area automatically so that the buffer is ready to use without calling the silc_buffer_pull_tail. 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.