MCPcopy Index your code
hub / github.com/SocketCluster/socketcluster / checked

Function checked

app/public/socketcluster-client.js:2929–2937  ·  view source on GitHub ↗
(length)

Source from the content-addressed store, hash-verified

2927}
2928
2929function checked (length) {
2930 // Note: cannot use `length < K_MAX_LENGTH` here because that fails when
2931 // length is NaN (which is otherwise coerced to zero.)
2932 if (length >= K_MAX_LENGTH) {
2933 throw new RangeError('Attempt to allocate Buffer larger than maximum ' +
2934 'size: 0x' + K_MAX_LENGTH.toString(16) + ' bytes')
2935 }
2936 return length | 0
2937}
2938
2939function SlowBuffer (length) {
2940 if (+length != length) { // eslint-disable-line eqeqeq

Callers 3

allocUnsafeFunction · 0.85
fromArrayLikeFunction · 0.85
fromObjectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…