Sha256: 9c333ddd65ccd16ccaaab1a5aadf76c3eb746f17279d43ab0e918bbcef9b0f49

Contents?: true

Size: 492 Bytes

Versions: 36

Compression:

Stored size: 492 Bytes

Contents

/*!
 * depd
 * Copyright(c) 2014 Douglas Christopher Wilson
 * MIT Licensed
 */

/**
 * Module exports.
 */

module.exports = bufferConcat

/**
 * Concatenate an array of Buffers.
 */

function bufferConcat(bufs) {
  var length = 0

  for (var i = 0, len = bufs.length; i < len; i++) {
    length += bufs[i].length
  }

  var buf = new Buffer(length)
  var pos = 0

  for (var i = 0, len = bufs.length; i < len; i++) {
    bufs[i].copy(buf, pos)
    pos += bufs[i].length
  }

  return buf
}

Version data entries

36 entries across 33 versions & 5 rubygems

Version Path
webpack_rails-2.0.1 lib/webpack_rails/node_modules/express/node_modules/depd/lib/compat/buffer-concat.js
webpack_rails-2.0.0 lib/webpack_rails/node_modules/express/node_modules/depd/lib/compat/buffer-concat.js
webpack_rails-1.3.1 lib/webpack_rails/node_modules/express/node_modules/depd/lib/compat/buffer-concat.js
webpack_rails-1.3.0 lib/webpack_rails/node_modules/express/node_modules/depd/lib/compat/buffer-concat.js
webpack_rails-1.2.2 lib/webpack_rails/node_modules/express/node_modules/depd/lib/compat/buffer-concat.js
webpack_rails-1.2.1 lib/webpack_rails/node_modules/express/node_modules/depd/lib/compat/buffer-concat.js
webpack_rails-1.2.0 lib/webpack_rails/node_modules/express/node_modules/depd/lib/compat/buffer-concat.js
hooch-0.4.2 jasmine/node_modules/karma/node_modules/connect/node_modules/depd/lib/compat/buffer-concat.js
webpack_rails-1.1.1 lib/webpack_rails/node_modules/express/node_modules/depd/lib/compat/buffer-concat.js
webpack_rails-1.1.0 lib/webpack_rails/node_modules/express/node_modules/depd/lib/compat/buffer-concat.js
webpack_rails-1.0.1 lib/webpack_rails/node_modules/express/node_modules/depd/lib/compat/buffer-concat.js
webpack_rails-1.0.0 lib/webpack_rails/node_modules/express/node_modules/depd/lib/compat/buffer-concat.js
hooch-0.4.1 jasmine/node_modules/karma/node_modules/connect/node_modules/depd/lib/compat/buffer-concat.js
hooch-0.4.0 jasmine/node_modules/karma/node_modules/connect/node_modules/depd/lib/compat/buffer-concat.js
gulp_assets-1.0.0.pre.5 template/node_modules/webpack-dev-server/node_modules/express/node_modules/depd/lib/compat/buffer-concat.js
gulp_assets-1.0.0.pre.5 template/node_modules/gulp-livereload/node_modules/tiny-lr/node_modules/body-parser/node_modules/depd/lib/compat/buffer-concat.js
gulp_assets-1.0.0.pre.4 template/node_modules/webpack-dev-server/node_modules/express/node_modules/depd/lib/compat/buffer-concat.js
gulp_assets-1.0.0.pre.4 template/node_modules/gulp-livereload/node_modules/tiny-lr/node_modules/body-parser/node_modules/depd/lib/compat/buffer-concat.js
gulp_assets-1.0.0.pre.3 template/node_modules/gulp-livereload/node_modules/tiny-lr/node_modules/body-parser/node_modules/depd/lib/compat/buffer-concat.js
gulp_assets-1.0.0.pre.3 template/node_modules/webpack-dev-server/node_modules/express/node_modules/depd/lib/compat/buffer-concat.js