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

Method readInt32

projects/JavaScript/proto/fbe.js:707–716  ·  view source on GitHub ↗

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

(offset)

Source from the content-addressed store, hash-verified

705 * @returns {!number} Int32 value
706 */
707 readInt32 (offset) {
708 offset = offset >>> 0
709 offset += this._buffer.offset
710 this._buffer.checkOffset(offset, 4)
711 return (
712 (this._buffer.buffer[offset + 0] << 0) |
713 (this._buffer.buffer[offset + 1] << 8) |
714 (this._buffer.buffer[offset + 2] << 16) |
715 (this._buffer.buffer[offset + 3] << 24))
716 }
717
718 /**
719 * Read UInt32 value from the field model buffer

Callers 12

getMethod · 0.45
getMethod · 0.45
getMethod · 0.45
getMethod · 0.45
getMethod · 0.45
getMethod · 0.45
getMethod · 0.45
getMethod · 0.45
getMethod · 0.45
getMethod · 0.45
getMethod · 0.45
getMethod · 0.45

Calls 1

checkOffsetMethod · 0.45

Tested by

no test coverage detected