UNPKG

@gmod/bgzf-filehandle

Version:

read from a compressed bgzip file (with .gzi) as if it were uncompressed

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