public QRCodeDataBlockReader(int[] blocks, int version, int numErrorCorrectionCode) { blockPointer = 0; bitPointer = 7; dataLength = 0; this.blocks = blocks; this.numErrorCorrectionCode = numErrorCorrectionCode; if (version <= 9) dataLengthMode = 0; else if (version >= 10 && version <= 26) dataLengthMode = 1; else if (version >= 27 && version <= 40) dataLengthMode = 2; canvas = QRCodeDecoder.Canvas; }
public QRCodeDataBlockReader(int[] blocks, int version, int numErrorCorrectionCode) { blockPointer = 0; bitPointer = 7; dataLength = 0; this.blocks = blocks; this.numErrorCorrectionCode = numErrorCorrectionCode; if (version <= 9) { dataLengthMode = 0; } else if (version >= 10 && version <= 26) { dataLengthMode = 1; } else if (version >= 27 && version <= 40) { dataLengthMode = 2; } canvas = QRCodeDecoder.Canvas; }
public QRCodeDecoder() { numTryDecode = 0; results = System.Collections.ArrayList.Synchronized(new System.Collections.ArrayList(10)); QRCodeDecoder.canvas = new DebugCanvasAdapter(); }