Vector 0.0.2
Loading...
Searching...
No Matches
Utilities

Commonly used internally and by inherited classes. More...

Collaboration diagram for Utilities:

Functions

size_t calc_aligned_size (const size_t size, const size_t alignment)
 Function calculates size of the element while respecting requirement for alignment.
 
ssize_t cmp_lex_asc (const void *const value, const void *const element, void *const param)
 Performs comparison in lexicographical ascending order.
 
ssize_t cmp_lex_dsc (const void *const value, const void *const element, void *const param)
 Performs comparison in lexicographical descending order.
 

Detailed Description

Commonly used internally and by inherited classes.

Function Documentation

◆ calc_aligned_size()

size_t calc_aligned_size ( const size_t size,
const size_t alignment )

Function calculates size of the element while respecting requirement for alignment.

Parameters
[in]sizeRequired data size
[in]alignmentTo multiple of which the size has to be aligned
Returns
size aligned by alignment, where aligned size >= size

Definition at line 445 of file vector.c.

◆ cmp_lex_asc()

ssize_t cmp_lex_asc ( const void *const value,
const void *const element,
void *const param )

Performs comparison in lexicographical ascending order.

See also
compare_t

Definition at line 451 of file vector.c.

◆ cmp_lex_dsc()

ssize_t cmp_lex_dsc ( const void *const value,
const void *const element,
void *const param )

Performs comparison in lexicographical descending order.

See also
compare_t

Definition at line 457 of file vector.c.