Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

28 lines (20 sloc) 0.519 kb
if !Buffer.concat
Buffer.concat = (buffers) ->
length = 0
for buffer in buffers
length += buffer.length
result = new Buffer(length);
position = 0
for buffer in buffers
buffer.copy(result, position, 0)
position += buffer.length
result
Buffer.prototype.toByteArray = () ->
Array.prototype.slice.call(@, 0)
Buffer.prototype.equals = (other) ->
if @.length != other.length
return false
for b, index in @
if @[index] != other[index]
return false
true
Jump to Line
Something went wrong with that request. Please try again.