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

Function objectWriteUInt32

static/word2md/mammoth.browser.js:11034–11039  ·  view source on GitHub ↗
(buf, value, offset, littleEndian)

Source from the content-addressed store, hash-verified

11032}
11033
11034function objectWriteUInt32 (buf, value, offset, littleEndian) {
11035 if (value < 0) value = 0xffffffff + value + 1
11036 for (var i = 0, j = Math.min(buf.length - offset, 4); i < j; ++i) {
11037 buf[offset + i] = (value >>> (littleEndian ? i : 3 - i) * 8) & 0xff
11038 }
11039}
11040
11041Buffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {
11042 value = +value

Callers 1

mammoth.browser.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected