silc_buffer_realloc
SYNOPSIS
static inline SilcBuffer silc_buffer_realloc(SilcBuffer sb, SilcUInt32 newsize);
DESCRIPTION
Reallocates buffer. Old data is saved into the new buffer. The buffer is exact clone of the old one except that there is now more/less space at the end of buffer. This always returns the same `sb' unless `sb' was NULL. Returns NULL if system is out of memory.
If the `newsize' is shorter than the current buffer size, the data and tail area of the buffer must be set to correct position before calling this function so that buffer overflow would not occur when the buffer size is reduced.