MCPcopy
hub / github.com/zxing-js/library / set

Method set

src/core/common/BitArray.ts:95–97  ·  view source on GitHub ↗

* Sets bit i. * * @param i bit to set

(i: number /*int*/)

Source from the content-addressed store, hash-verified

93 * @param i bit to set
94 */
95 public set(i: number /*int*/): void {
96 this.bits[Math.floor(i / 32)] |= 1 << (i & 0x1F);
97 }
98
99 /**
100 * Flips bit i.

Callers 15

buildBitArrayMethod · 0.95
getRowMethod · 0.45
putMetadataMethod · 0.45
readModuleMethod · 0.45
doDecodeFunction · 0.45
FieldParserClass · 0.45
getBlackRowMethod · 0.45
thresholdBlockMethod · 0.45
constructorMethod · 0.45
constructorMethod · 0.45

Calls

no outgoing calls

Tested by 4

compareToGoldenFileFunction · 0.36
testWriterFunction · 0.36
eraseFunction · 0.36