| 220 | // bitwise ops |
| 221 | |
| 222 | void UArray_setAllBitsTo_(UArray *self, uint8_t aBool) { |
| 223 | size_t i, max = UArray_sizeInBytes(self); |
| 224 | uint8_t *data = self->data; |
| 225 | uint8_t bits = aBool ? ~0 : 0; |
| 226 | for (i = 0; i < max; i++) { |
| 227 | data[i] = bits; |
| 228 | } |
| 229 | } |
| 230 | |
| 231 | // adjust for endianess? |
| 232 |
nothing calls this directly
no test coverage detected