silc_stack_set_alignment

SYNOPSIS

    void silc_stack_set_alignment(SilcStack stack, SilcUInt32 alignment);

DESCRIPTION

Sets/changes the memory alignment in the `stack' to `alignment' which is the alignment in bytes. By default, the SilcStack will use alignment suited for the platform where it is used. This function can be used to change this alignment, if such change is needed. You may check the current alignment by calling silc_stack_get_alignment.

NOTES

It is not mandatory to call this function. By default the SilcStack will always use alignment suited for the used platform. This function should be called only if the alignment needs to be changed to something other than the default on the used platform. For example, some hardware device, such as crypto accelerator, may require special alignment.