MCPcopy Create free account
hub / github.com/chronoxor/FastBinaryEncoding / writeUInt32

Method writeUInt32

projects/JavaScript/proto/fbe.js:5584–5591  ·  view source on GitHub ↗

* Write UInt32 value into the model buffer * @this {!Model} * @param {!Uint8Array} buffer Buffer * @param {!number} offset Offset * @param {!number} value Value

(buffer, offset, value)

Source from the content-addressed store, hash-verified

5582 * @param {!number} value Value
5583 */
5584 static writeUInt32 (buffer, offset, value) {
5585 value = +value
5586 Receiver.checkValue(buffer, offset, 4, value, 0, 0xFFFFFFFF)
5587 buffer[offset + 3] = (value >>> 24)
5588 buffer[offset + 2] = (value >>> 16)
5589 buffer[offset + 1] = (value >>> 8)
5590 buffer[offset + 0] = (value & 0xFF)
5591 }
5592}
5593
5594exports.Receiver = Receiver

Callers

nothing calls this directly

Calls 1

checkValueMethod · 0.45

Tested by

no test coverage detected