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

Method readUInt32

projects/JavaScript/proto/fbe.js:495–504  ·  view source on GitHub ↗

* Read UInt32 value from the model buffer * @this {!Model} * @param {!number} offset Offset * @returns {!number} UInt32 value

(offset)

Source from the content-addressed store, hash-verified

493 * @returns {!number} UInt32 value
494 */
495 readUInt32 (offset) {
496 offset = offset >>> 0
497 offset += this._buffer.offset
498 this._buffer.checkOffset(offset, 4)
499 return (
500 (this._buffer.buffer[offset + 0] << 0) |
501 (this._buffer.buffer[offset + 1] << 8) |
502 (this._buffer.buffer[offset + 2] << 16)) +
503 (this._buffer.buffer[offset + 3] * 0x1000000)
504 }
505
506 /**
507 * Write UInt32 value into the model buffer

Callers 15

getMethod · 0.45
getMethod · 0.45
getMethod · 0.45
getMethod · 0.45
fbeExtraMethod · 0.45
verifyMethod · 0.45
getBeginMethod · 0.45
getMethod · 0.45
verifyMethod · 0.45
deserializeMethod · 0.45
verifyMethod · 0.45
deserializeMethod · 0.45

Calls 1

checkOffsetMethod · 0.45

Tested by

no test coverage detected