MCPcopy Create free account
hub / github.com/TruthHun/BookStack / checkInt

Function checkInt

static/word2md/mammoth.browser.js:10947–10951  ·  view source on GitHub ↗
(buf, value, offset, ext, max, min)

Source from the content-addressed store, hash-verified

10945}
10946
10947function checkInt (buf, value, offset, ext, max, min) {
10948 if (!Buffer.isBuffer(buf)) throw new TypeError('"buffer" argument must be a Buffer instance')
10949 if (value > max || value < min) throw new RangeError('"value" argument is out of bounds')
10950 if (offset + ext > buf.length) throw new RangeError('Index out of range')
10951}
10952
10953Buffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {
10954 value = +value

Callers 1

mammoth.browser.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected