MCPcopy Create free account
hub / github.com/MoeMod/CSMoE / applyMask

Function applyMask

3rdparty/QRCode/QRCode.cpp:214–235  ·  view source on GitHub ↗

XORs the data modules in this QR Code with the given mask pattern. Due to XOR's mathematical properties, calling applyMask(m) twice with the same value is equivalent to no change at all. This means it is possible to apply a mask, undo it, and try another mask. Note that a final well-formed QR Code symbol needs exactly one mask applied (not zero, not two, etc.).

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

initBytesFunction · 0.85

Calls 2

bb_getBitFunction · 0.85
bb_invertBitFunction · 0.85

Tested by

no test coverage detected