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

Method readUInt16

projects/JavaScript/proto/fbe.js:694–699  ·  view source on GitHub ↗

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

(offset)

Source from the content-addressed store, hash-verified

692 * @returns {!number} UInt16 value
693 */
694 readUInt16 (offset) {
695 offset = offset >>> 0
696 offset += this._buffer.offset
697 this._buffer.checkOffset(offset, 2)
698 return this._buffer.buffer[offset] | (this._buffer.buffer[offset + 1] << 8)
699 }
700
701 /**
702 * Read Int32 value from the field model buffer

Callers 4

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

Calls 1

checkOffsetMethod · 0.45

Tested by

no test coverage detected