static concat(list, totalLength) {
    if (totalLength == undefined) {
      totalLength = 0;
      for (const buf of list) {
        totalLength += buf.length;
      }
    }
    const buffer = new Buffer(totalLength);
    let pos = 0;
    for (const buf of list) {
      buffer.set(buf, pos);
      pos += buf.length;
    }
    return buffer;
  }
/**
   * Returns a new Buffer which is the result of concatenating all the Buffer
   * instances in the list together.
   */
Returns a new Buffer which is the result of concatenating all the Buffer
instances in the list together.
Returns a new Buffer which is the result of concatenating all the Buffer instances in the list together .
static concat(list, totalLength) {
    if (totalLength == undefined) {
      totalLength = 0;
      for (const buf of list) {
        totalLength += buf.length;
      }
    }
    const buffer = new Buffer(totalLength);
    let pos = 0;
    for (const buf of list) {
      buffer.set(buf, pos);
      pos += buf.length;
    }
    return buffer;
  }
static concat ( list , totalLength ) { if ( totalLength == undefined ) { totalLength = 0 ; for ( const buf of list ) { totalLength += buf . length ; } } const buffer = new Buffer ( totalLength ) ; let pos = 0 ; for ( const buf of list ) { buffer . set ( buf , pos ) ; pos += buf . length ; } return buffer ; }
Returns a new Buffer which is the result of concatenating all the Buffer
 instances in the list together.
Returns a new Buffer which is the result of concatenating all the Buffer instances in the list together .