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

Method get

src/core/common/BitArray.ts:86–88  ·  view source on GitHub ↗

* @param i bit to get * @return true iff bit i is set

(i: number /*int*/)

Source from the content-addressed store, hash-verified

84 * @return true iff bit i is set
85 */
86 public get(i: number /*int*/): boolean {
87 return (this.bits[Math.floor(i / 32)] & (1 << (i & 0x1F))) !== 0;
88 }
89
90 /**
91 * Sets bit i.

Callers 15

toBytesMethod · 0.95
toStringMethod · 0.95
toArrayMethod · 0.95
embedTypeInfoMethod · 0.95
maybeEmbedVersionInfoMethod · 0.95
writeFunction · 0.45
encodeFunction · 0.45
renderResultFunction · 0.45
writeMethod · 0.45
renderResultMethod · 0.45
setHintsMethod · 0.45
decodeMethod · 0.45

Calls

no outgoing calls

Tested by 11

testDecodingRowByRowMethod · 0.36
matrixToStringFunction · 0.36
testRotate180Function · 0.36
getUnsignedIntAsStringFunction · 0.36
testMaskAcrossDimensionsFunction · 0.36
toBooleanArrayFunction · 0.36
makeLargerFunction · 0.36
rotateRightFunction · 0.36
transposeFunction · 0.36
cloneFunction · 0.36
eraseFunction · 0.36