returns number of attributes within the set
| 73 | |
| 74 | // returns number of attributes within the set |
| 75 | uint16_t AttributeSet_Count |
| 76 | ( |
| 77 | const AttributeSet set // set to query |
| 78 | ) { |
| 79 | // in case attribute-set is marked as read-only, clear marker |
| 80 | AttributeSet _set = (AttributeSet)ATTRIBUTE_SET_CLEAR_MSB(set); |
| 81 | |
| 82 | return (_set == NULL) ? 0 : _set->attr_count; |
| 83 | } |
| 84 | |
| 85 | // retrieves a value from set |
| 86 | // NOTE: if the key does not exist |
no outgoing calls
no test coverage detected