/* Clears and initialiazes the buffer to the state as if it was just
allocated by silc_buffer_alloc. */
/* Clears and initialiazes the buffer to the state as if it was just
allocated by silc_buffer_alloc. */
void silc_buffer_clear(SilcBuffer sb)
{
memset(sb->head, 0, sb->truelen);
void silc_buffer_clear(SilcBuffer sb)
{
memset(sb->head, 0, sb->truelen);
new SilcBuffer pointer. The buffer is exact clone of the old one
except that there is now more space at the end of buffer. */
new SilcBuffer pointer. The buffer is exact clone of the old one
except that there is now more space at the end of buffer. */