MCPcopy
hub / github.com/kciter/qart.js / getBCHDigit

Function getBCHDigit

src/qrcode.js:719–726  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

717 var _this = {}
718
719 var getBCHDigit = function (data) {
720 var digit = 0
721 while (data != 0) {
722 digit += 1
723 data >>>= 1
724 }
725 return digit
726 }
727
728 _this.getBCHTypeInfo = function (data) {
729 var d = data << 10

Callers 1

qrcode.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected