silc_buffer_append

SYNOPSIS

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

DESCRIPTION

Appends the current data area by the amount of `size'. The tail area of the buffer remains intact and contains the same data than the old tail area (the data is copied to the new tail area). After appending there is now `size' bytes more free area in the data area. Returns FALSE if system is out of memory.

EXAMPLE

    Before appending:
    ---------------------------------
    | head  | data           | tail |
    ---------------------------------

    After appending:
    ------------------------------------
    | head  | data               | tail |
    -------------------------------------

    silc_buffer_append(sb, 5);