function concat(...buf) {
  let length = 0;
  for (const b of buf) {
    length += b.length;
  }
  const output = new Uint8Array(length);
  let index = 0;
  for (const b of buf) {
    output.set(b, index);
    index += b.length;
  }
  return output;
}
/** Concatenate multiple binary arrays and return new one.
 * @param buf binary arrays to concatenate
 */
Concatenate multiple binary arrays and return new one.
@param buf binary arrays to concatenate
Concatenate multiple binary arrays and return new one . @param buf binary arrays to concatenate
function concat(...buf) {
  let length = 0;
  for (const b of buf) {
    length += b.length;
  }
  const output = new Uint8Array(length);
  let index = 0;
  for (const b of buf) {
    output.set(b, index);
    index += b.length;
  }
  return output;
}
function concat ( ... buf ) { let length = 0 ; for ( const b of buf ) { length += b . length ; } const output = new Uint8Array ( length ) ; let index = 0 ; for ( const b of buf ) { output . set ( b , index ) ; index += b . length ; } return output ; }
Concatenate multiple binary arrays and return new one.
Concatenate multiple binary arrays and return new one .