Get the value at the given position. When this position is * out of range the function returns 0, when in range it returns 1. */
| 268 | /* Get the value at the given position. When this position is |
| 269 | * out of range the function returns 0, when in range it returns 1. */ |
| 270 | uint8_t intsetGet(intset *is, uint32_t pos, int64_t *value) { |
| 271 | if (pos < intrev32ifbe(is->length)) { |
| 272 | *value = _intsetGet(is,pos); |
| 273 | return 1; |
| 274 | } |
| 275 | return 0; |
| 276 | } |
| 277 | |
| 278 | /* Return intset length */ |
| 279 | uint32_t intsetLen(const intset *is) { |
no test coverage detected