silc_buffer_salloc_size

SYNOPSIS

    static inline
    SilcBuffer silc_buffer_salloc_size(SilcStack stack, SilcUInt32 len);

DESCRIPTION

Allocates `len' bytes size buffer and moves the tail area automatically `len' bytes 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.