MCPcopy Create free account
hub / github.com/Tencent/puerts / checkBounds

Function checkBounds

unreal/Puerts/Content/JavaScript/ffi/buffer-ext.js:26–30  ·  view source on GitHub ↗
(buf, offset, byteLength)

Source from the content-addressed store, hash-verified

24}
25
26function checkBounds(buf, offset, byteLength) {
27 validateNumber(offset, 'offset');
28 if (buf[offset] === undefined || buf[offset + byteLength] === undefined)
29 boundsError(offset, buf.length - (byteLength + 1));
30}
31
32
33function writeU_Int8(buf, value, offset, min, max) {

Callers 8

writeInt16Function · 0.85
writeUInt16Function · 0.85
writeInt32Function · 0.85
writeUInt32Function · 0.85
writeFloatFunction · 0.85
writeDoubleFunction · 0.85
writeInt64Function · 0.85
writeUInt64Function · 0.85

Calls 2

validateNumberFunction · 0.85
boundsErrorFunction · 0.85

Tested by

no test coverage detected