UNPKG

zbar.wasm

Version:

A wasm build of C/C++ Zbar barcode scanning library.

20 lines 467 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CppObject = void 0; class CppObject { constructor(ptr, inst) { this.ptr = ptr; this.inst = inst; } checkAlive() { if (this.ptr) return; throw Error('Call after destroyed'); } getPointer() { this.checkAlive(); return this.ptr; } } exports.CppObject = CppObject; //# sourceMappingURL=CppObject.js.map