MCPcopy Create free account
hub / github.com/PrairieLearn/PrairieLearn / isBuf

Function isBuf

public/javascripts/socket.io.js:3214–3217  ·  view source on GitHub ↗

* Returns true if obj is a buffer or an arraybuffer. * * @api private

(obj)

Source from the content-addressed store, hash-verified

3212 */
3213
3214 function isBuf(obj) {
3215 return (global.Buffer && global.Buffer.isBuffer(obj)) ||
3216 (global.ArrayBuffer && obj instanceof ArrayBuffer);
3217 }
3218
3219 /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))
3220

Callers 3

socket.io.jsFile · 0.85
_deconstructPacketFunction · 0.85
_removeBlobsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected