[apps/tidep0084.git] / prebuilt / iot-gateway / node_modules / depd / lib / compat / buffer-concat.js
diff --git a/prebuilt/iot-gateway/node_modules/depd/lib/compat/buffer-concat.js b/prebuilt/iot-gateway/node_modules/depd/lib/compat/buffer-concat.js
+++ /dev/null
@@ -1,35 +0,0 @@
-/*!
- * depd
- * Copyright(c) 2014 Douglas Christopher Wilson
- * MIT Licensed
- */
-
-'use strict'
-
-/**
- * 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
-}