MCPcopy Create free account
hub / github.com/IoLanguage/io / UArray_setAllBitsTo_

Function UArray_setAllBitsTo_

libs/basekit/source/UArray_math.c:222–229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

220// bitwise ops
221
222void 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

Callers

nothing calls this directly

Calls 1

UArray_sizeInBytesFunction · 0.85

Tested by

no test coverage detected