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

Method writeUInt32

projects/JavaScript/proto/fbe.js:968–977  ·  view source on GitHub ↗

* Write UInt32 value into the field model buffer * @this {!FieldModelBase} * @param {!number} offset Offset * @param {!number} value UInt32 value

(offset, value)

Source from the content-addressed store, hash-verified

966 * @param {!number} value UInt32 value
967 */
968 writeUInt32 (offset, value) {
969 value = +value
970 offset = offset >>> 0
971 offset += this._buffer.offset
972 this._buffer.checkValue(offset, 4, value, 0, 0xFFFFFFFF)
973 this._buffer.buffer[offset + 0] = (value & 0xFF)
974 this._buffer.buffer[offset + 1] = (value >>> 8)
975 this._buffer.buffer[offset + 2] = (value >>> 16)
976 this._buffer.buffer[offset + 3] = (value >>> 24)
977 }
978
979 /**
980 * Write Int64 value into the field model buffer

Callers 1

writeWCharMethod · 0.95

Calls 1

checkValueMethod · 0.45

Tested by

no test coverage detected