silc_buffer_enlarge

SYNOPSIS

    static inline
    SilcBuffer silc_buffer_enlarge(SilcBuffer sb, SilcUInt32 size);

DESCRIPTION

Enlarges the buffer by the amount of `size' if it doesn't have that must space in the data area and in the tail area. Moves the tail area automatically after enlarging so that the current data area is at least the size of `size'. If there is more space than `size' in the data area this does not do anything. If there is enough space in the tail area this merely moves the tail area to reveal the extra space. Returns FALSE if system is out of memory.