- 37개 파일 IP → zioinfo.co.kr 치환 (소스/매뉴얼/설정/하네스) - Manager DrConsole/NetworkConsole/CsapConsole 빌드 + /var/www/manager/ 배포 - 테스트: Manager HTTP 200, ITSM 신규 API 7개 전체 200 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
39 lines
702 B
JavaScript
39 lines
702 B
JavaScript
function QRBitBuffer() {
|
|
this.buffer = [];
|
|
this.length = 0;
|
|
}
|
|
|
|
QRBitBuffer.prototype = {
|
|
|
|
get : function(index) {
|
|
var bufIndex = Math.floor(index / 8);
|
|
return ( (this.buffer[bufIndex] >>> (7 - index % 8) ) & 1) == 1;
|
|
},
|
|
|
|
put : function(num, length) {
|
|
for (var i = 0; i < length; i++) {
|
|
this.putBit( ( (num >>> (length - i - 1) ) & 1) == 1);
|
|
}
|
|
},
|
|
|
|
getLengthInBits : function() {
|
|
return this.length;
|
|
},
|
|
|
|
putBit : function(bit) {
|
|
|
|
var bufIndex = Math.floor(this.length / 8);
|
|
if (this.buffer.length <= bufIndex) {
|
|
this.buffer.push(0);
|
|
}
|
|
|
|
if (bit) {
|
|
this.buffer[bufIndex] |= (0x80 >>> (this.length % 8) );
|
|
}
|
|
|
|
this.length++;
|
|
}
|
|
};
|
|
|
|
module.exports = QRBitBuffer;
|