constructor(instance, instancesPool, chunkSize, digestSize) {
	    const exports = /** @type {any} */ (instance.exports);

	    exports.init();

	    this.exports = exports;
	    this.mem = Buffer.from(exports.memory.buffer, 0, 65536);
	    this.buffered = 0;
	    this.instancesPool = instancesPool;
	    this.chunkSize = chunkSize;
	    this.digestSize = digestSize;
	  }
@param {WebAssembly.Instance} instance wasm instance
@param {WebAssembly.Instance[]} instancesPool pool of instances
@param {number} chunkSize size of data chunks passed to wasm
@param {number} digestSize size of digest returned by wasm