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

Function kMaxLength

bitcore-message.js:354–358  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

352}
353
354function kMaxLength () {
355 return Buffer.TYPED_ARRAY_SUPPORT
356 ? 0x7fffffff
357 : 0x3fffffff
358}
359
360function createBuffer (that, length) {
361 if (kMaxLength() < length) {

Callers 3

bitcore-message.jsFile · 0.85
createBufferFunction · 0.85
checkedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected