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

Function fromArrayLike

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

Source from the content-addressed store, hash-verified

21602 return (assertSize(s), createBuffer(s < 0 ? 0 : 0 | checked(s)))
21603 }
21604 function fromArrayLike(s) {
21605 const o = s.length < 0 ? 0 : 0 | checked(s.length),
21606 i = createBuffer(o)
21607 for (let a = 0; a < o; a += 1) i[a] = 255 & s[a]
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')

Callers 1

fromFunction · 0.85

Calls 2

checkedFunction · 0.85
createBufferFunction · 0.85

Tested by

no test coverage detected