UNPKG

node-noise

Version:
15 lines 448 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.asUint8Array = void 0; /** * To guarantee Uint8Array semantics, convert nodejs Buffers * into vanilla Uint8Arrays */ function asUint8Array(buf) { if (globalThis.Buffer != null) { return new Uint8Array(buf.buffer, buf.byteOffset, buf.byteLength); } return buf; } exports.asUint8Array = asUint8Array; //# sourceMappingURL=as-uint8array.js.map