|
|
@ -280,11 +280,12 @@ Buffer.prototype.toString = function (encoding, start, end) { |
|
|
|
Buffer.byteLength = SlowBuffer.byteLength; |
|
|
|
|
|
|
|
|
|
|
|
// copy(targetBuffer, targetStart, sourceStart=0, sourceEnd=buffer.length)
|
|
|
|
// copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)
|
|
|
|
Buffer.prototype.copy = function copy (target, target_start, start, end) { |
|
|
|
var source = this; |
|
|
|
start || (start = 0); |
|
|
|
end || (end = this.length); |
|
|
|
target_start || (target_start = 0); |
|
|
|
|
|
|
|
if (end < start) throw new Error("sourceEnd < sourceStart"); |
|
|
|
|
|
|
|