MCPcopy Create free account
hub / github.com/CloudBoost/cloudboost / isBuf

Function isBuf

sdk/src/CloudSocketClientLib.js:6836–6838  ·  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

6834 */
6835
6836 function isBuf(obj) {
6837 return (global.Buffer && global.Buffer.isBuffer(obj)) || (global.ArrayBuffer && obj instanceof ArrayBuffer);
6838 }
6839
6840 }).call(this, typeof self !== "undefined"
6841 ? self

Callers 3

_deconstructPacketFunction · 0.70
_removeBlobsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected