function $2aae91eabe675348$var$concat(list, totalLength) {
    if (list.length === 0) return $2aae91eabe675348$require$EMPTY_BUFFER;
    if (list.length === 1) return list[0];
    const target = Buffer.allocUnsafe(totalLength);
    let offset = 0;
    for(let i = 0; i < list.length; i++){
        const buf = list[i];
        target.set(buf, offset);
        offset += buf.length;
    }
    if (offset < totalLength) return target.slice(0, offset);
    return target;
}
/**
 * Merges an array of buffers into a new buffer.
 *
 * @param {Buffer[]} list The array of buffers to concat
 * @param {Number} totalLength The total length of buffers in the list
 * @return {Buffer} The resulting buffer
 * @public
 */
Merges an array of buffers into a new buffer.
@param {Buffer[]} list The array of buffers to concat
@param {Number} totalLength The total length of buffers in the list
@return {Buffer} The resulting buffer
@public
Merges an array of buffers into a new buffer . @param { Buffer [] } list The array of buffers to concat @param { Number } totalLength The total length of buffers in the list @return { Buffer } The resulting buffer @public
function $2aae91eabe675348$var$concat(list, totalLength) {
    if (list.length === 0) return $2aae91eabe675348$require$EMPTY_BUFFER;
    if (list.length === 1) return list[0];
    const target = Buffer.allocUnsafe(totalLength);
    let offset = 0;
    for(let i = 0; i < list.length; i++){
        const buf = list[i];
        target.set(buf, offset);
        offset += buf.length;
    }
    if (offset < totalLength) return target.slice(0, offset);
    return target;
}
function $2aae91eabe675348$var$concat ( list , totalLength ) { if ( list . length === 0 ) return $2aae91eabe675348$require$EMPTY_BUFFER ; if ( list . length === 1 ) return list [ 0 ] ; const target = Buffer . allocUnsafe ( totalLength ) ; let offset = 0 ; for ( let i = 0 ; i < list . length ; i ++ ) { const buf = list [ i ] ; target . set ( buf , offset ) ; offset += buf . length ; } if ( offset < totalLength ) return target . slice ( 0 , offset ) ; return target ; }
Merges an array of buffers into a new buffer.
Merges an array of buffers into a new buffer .