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

Function latin1Slice

bitcore-message.js:1315–1323  ·  view source on GitHub ↗
(buf, start, end)

Source from the content-addressed store, hash-verified

1313}
1314
1315function latin1Slice (buf, start, end) {
1316 var ret = ''
1317 end = Math.min(buf.length, end)
1318
1319 for (var i = start; i < end; ++i) {
1320 ret += String.fromCharCode(buf[i])
1321 }
1322 return ret
1323}
1324
1325function hexSlice (buf, start, end) {
1326 var len = buf.length

Callers 1

slowToStringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected