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

Function assertSize

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

Source from the content-addressed store, hash-verified

21595 )
21596 }
21597 function assertSize(s) {
21598 if ('number' != typeof s) throw new TypeError('"size" argument must be of type number')
21599 if (s < 0) throw new RangeError('The value "' + s + '" is invalid for option "size"')
21600 }
21601 function allocUnsafe(s) {
21602 return (assertSize(s), createBuffer(s < 0 ? 0 : 0 | checked(s)))
21603 }

Callers 2

allocUnsafeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected