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

Method readUInt32

projects/JavaScript/proto/fbe.js:724–733  ·  view source on GitHub ↗

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

(offset)

Source from the content-addressed store, hash-verified

722 * @returns {!number} UInt32 value
723 */
724 readUInt32 (offset) {
725 offset = offset >>> 0
726 offset += this._buffer.offset
727 this._buffer.checkOffset(offset, 4)
728 return (
729 (this._buffer.buffer[offset + 0] << 0) |
730 (this._buffer.buffer[offset + 1] << 8) |
731 (this._buffer.buffer[offset + 2] << 16)) +
732 (this._buffer.buffer[offset + 3] * 0x1000000)
733 }
734
735 /**
736 * Read Int64 value from the field model buffer

Callers 1

readWCharMethod · 0.95

Calls 1

checkOffsetMethod · 0.45

Tested by

no test coverage detected