Tj Holowaychuk
14 years ago
2 changed files with 0 additions and 48 deletions
@ -1,22 +0,0 @@ |
|||||
|
|
||||
/*! |
|
||||
* Canvas - Buffer |
|
||||
* Copyright (c) 2010 LearnBoost <tj@learnboost.com> |
|
||||
* MIT Licensed |
|
||||
*/ |
|
||||
|
|
||||
/** |
|
||||
* Concatenate `this` Buffer with `other`. |
|
||||
* |
|
||||
* @param {Buffer} other |
|
||||
* @return {Buffer} |
|
||||
* @api public |
|
||||
*/ |
|
||||
|
|
||||
Buffer.prototype.concat = function(other) { |
|
||||
var len = this.length |
|
||||
, buf = new Buffer(len + other.length); |
|
||||
this.copy(buf, 0, 0); |
|
||||
other.copy(buf, len, 0); |
|
||||
return buf; |
|
||||
}; |
|
Loading…
Reference in new issue