MCPcopy Index your code
hub / github.com/nodejs/node / readInt8

Function readInt8

lib/internal/buffer.js:426–433  ·  view source on GitHub ↗
(buf, offset = 0)

Source from the content-addressed store, hash-verified

424}
425
426function readInt8(buf, offset = 0) {
427 validateNumber(offset, 'offset');
428 const val = buf[offset];
429 if (val === undefined)
430 boundsError(offset, buf.length - 1);
431
432 return val | (val & 2 ** 7) * 0x1fffffe;
433}
434
435function readIntBE(offset, byteLength) {
436 if (offset === undefined)

Callers 3

readIntLEFunction · 0.85
readIntBEFunction · 0.85

Calls 1

boundsErrorFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…