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

Method readUInt64

projects/JavaScript/proto/fbe.js:764–779  ·  view source on GitHub ↗

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

(offset)

Source from the content-addressed store, hash-verified

762 * @returns {!UInt64} UInt64 value
763 */
764 readUInt64 (offset) {
765 offset = offset >>> 0
766 offset += this._buffer.offset
767 this._buffer.checkOffset(offset, 8)
768 let low = (
769 (this._buffer.buffer[offset + 0] << 0) |
770 (this._buffer.buffer[offset + 1] << 8) |
771 (this._buffer.buffer[offset + 2] << 16) |
772 (this._buffer.buffer[offset + 3] << 24))
773 let high = (
774 (this._buffer.buffer[offset + 4] << 0) |
775 (this._buffer.buffer[offset + 5] << 8) |
776 (this._buffer.buffer[offset + 6] << 16) +
777 (this._buffer.buffer[offset + 7] << 24))
778 return new UInt64(low, high)
779 }
780
781 /**
782 * Read float value from the field model buffer

Callers 8

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