50 #ifndef _UNIREC_LINKS_H_ 51 #define _UNIREC_LINKS_H_ 64 #define MAX_LINK_COUNT 64 //since link mask is held by uint64_t 126 if (index < links->link_count) {
INLINE uint64_t ur_get_link_mask(ur_links_t *links)
Get link mask.
void ur_free_links(ur_links_t *links)
Destroy links structure. Free all memory allocated for a links structure created previously by ur_cre...
INLINE unsigned int ur_get_link_count(ur_links_t *links)
Get link count.
Links structure. It contains a link count, link mask and link indexes. Array link_indexes stores posi...
INLINE uint64_t ur_get_link_bit_field_position(ur_links_t *links, unsigned int index)
Get position in link_bit_field of link. Get position in link_bit_field of link specified by index of ...
INLINE int ur_get_link_index(ur_links_t *links, uint64_t link_bit_field)
Get index of link (0 - (n-1)) Function gets search link_indexes array for value corresponding to pass...
ur_links_t * ur_create_links(const char *mask)
Create and initialize links structure. Create new links structure and initialize it from link mask in...