UNPKG

@gmod/cram

Version:

read CRAM files with pure Javascript

20 lines 520 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.concatUint8Array = concatUint8Array; function sum(array) { let sum = 0; for (const entry of array) { sum += entry.length; } return sum; } function concatUint8Array(args) { const mergedArray = new Uint8Array(sum(args)); let offset = 0; for (const entry of args) { mergedArray.set(entry, offset); offset += entry.length; } return mergedArray; } //# sourceMappingURL=util.js.map