UNPKG

@aptpod/iscp-ts

Version:

iSCP 2.0 client library for TypeScript

17 lines 532 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.concat = void 0; const concat = (...args) => { const totalByteLength = args.reduce((prev, cur) => { return prev + cur.byteLength; }, 0); const combinedArray = new Uint8Array(totalByteLength); let byteOffset = 0; for (const array of args) { combinedArray.set(array, byteOffset); byteOffset += array.byteLength; } return combinedArray; }; exports.concat = concat; //# sourceMappingURL=index.js.map