MCPcopy Create free account
hub / github.com/microsoft/SandDance / SlowBuffer

Function SlowBuffer

docs/app/js/sanddance-app.js:113056–113059  ·  view source on GitHub ↗
(length)

Source from the content-addressed store, hash-verified

113054 return length | 0;
113055}
113056function SlowBuffer(length) {
113057 if (+length != length) length = 0;
113058 return Buffer.alloc(+length);
113059}
113060Buffer.isBuffer = function isBuffer(b) {
113061 return b != null && b._isBuffer === true && b !== Buffer.prototype // so Buffer.isBuffer(Buffer.prototype) will be false
113062 ;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected