silc_buffer_salloc

SYNOPSIS

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

DESCRIPTION

Allocates new SilcBuffer and returns it. 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.