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

Function fromArrayBuffer

frontend/public/swagger-ui-bundle.js:21610–21626  ·  view source on GitHub ↗
(s, o, i)

Source from the content-addressed store, hash-verified

21608 return i
21609 }
21610 function fromArrayBuffer(s, o, i) {
21611 if (o < 0 || s.byteLength < o)
21612 throw new RangeError('"offset" is outside of buffer bounds')
21613 if (s.byteLength < o + (i || 0))
21614 throw new RangeError('"length" is outside of buffer bounds')
21615 let a
21616 return (
21617 (a =
21618 void 0 === o && void 0 === i
21619 ? new Uint8Array(s)
21620 : void 0 === i
21621 ? new Uint8Array(s, o)
21622 : new Uint8Array(s, o, i)),
21623 Object.setPrototypeOf(a, Buffer.prototype),
21624 a
21625 )
21626 }
21627 function checked(s) {
21628 if (s >= w)
21629 throw new RangeError(

Callers 1

fromFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected