MCPcopy Create free account
hub / github.com/bitpay/bitcore-message / blitBuffer

Function blitBuffer

bitcore-message.js:2069–2075  ·  view source on GitHub ↗
(src, dst, offset, length)

Source from the content-addressed store, hash-verified

2067}
2068
2069function blitBuffer (src, dst, offset, length) {
2070 for (var i = 0; i < length; ++i) {
2071 if ((i + offset >= dst.length) || (i >= src.length)) break
2072 dst[i + offset] = src[i]
2073 }
2074 return i
2075}
2076
2077function isnan (val) {
2078 return val !== val // eslint-disable-line no-self-compare

Callers 4

utf8WriteFunction · 0.85
asciiWriteFunction · 0.85
base64WriteFunction · 0.85
ucs2WriteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected