qrcode-generator-ts
Version:
Typescript QR Code generator based on https://github.com/kazuhikoarase/qrcode-generator
24 lines (18 loc) • 380 B
text/typescript
import { OutputStream } from './OutputStream';
;
/**
* ByteArrayOutputStream
* @author Kazuhiko Arase
*/
export class ByteArrayOutputStream extends OutputStream {
private bytes: number[] = [];
constructor() {
super();
}
public writeByte(b: number): void {
this.bytes.push(b);
}
public toByteArray(): number[] {
return this.bytes;
}
}