NapCatQQ source snapshot
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
Release Tag / validate-version (push) Waiting to run

This commit is contained in:
TanTan committed 2026-11-13 09:01:47 +08:00
commit f954252a34
1111 files changed
+139867

No files matched your search

+24
View File
@@ -0,0 +1,24 @@
import { MODE_8BIT_BYTE } from './QRMode';
class QR8bitByte {
mode: number;
data: string;
constructor (data: string) {
this.mode = MODE_8BIT_BYTE;
this.data = data;
}
getLength (): number {
return this.data.length;
}
write (buffer: { put: (arg0: number, arg1: number) => void }): void {
for (let i = 0; i < this.data.length; i++) {
// not JIS ...
buffer.put(this.data.charCodeAt(i), 8);
}
}
}
export default QR8bitByte;