MCPcopy Index your code
hub / github.com/dataease/SQLBot / createBuffer

Function createBuffer

frontend/public/swagger-ui-bundle.js:21521–21525  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

21519 (o.INSPECT_MAX_BYTES = 50))
21520 const w = 2147483647
21521 function createBuffer(s) {
21522 if (s > w) throw new RangeError('The value "' + s + '" is invalid for option "size"')
21523 const o = new Uint8Array(s)
21524 return (Object.setPrototypeOf(o, Buffer.prototype), o)
21525 }
21526 function Buffer(s, o, i) {
21527 if ('number' == typeof s) {
21528 if ('string' == typeof o)

Callers 4

fromFunction · 0.85
allocUnsafeFunction · 0.85
fromArrayLikeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected