| 231 | // adjust for endianess? |
| 232 | |
| 233 | int UArray_bitAt_(UArray *self, size_t i) { |
| 234 | size_t bytePos = i / 8; |
| 235 | size_t bitPos = i % 8; |
| 236 | if (bytePos >= UArray_sizeInBytes(self)) |
| 237 | return 0; |
| 238 | return (self->data[bytePos] >> bitPos) & 0x1; |
| 239 | } |
| 240 | |
| 241 | uint8_t UArray_byteAt_(UArray *self, size_t i) { |
| 242 | if (i < UArray_sizeInBytes(self)) |
nothing calls this directly
no test coverage detected