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

Method get

projects/JavaScript/proto/test.js:1224–1230  ·  view source on GitHub ↗

* Get the value * @this {!FieldModelFlagsTyped} * @returns {!object} Result value and its size

()

Source from the content-addressed store, hash-verified

1222 * @returns {!object} Result value and its size
1223 */
1224 get () {
1225 if ((this._buffer.offset + this.fbeOffset + this.fbeSize) > this._buffer.size) {
1226 return { value: new FlagsTyped(), size: 0 }
1227 }
1228
1229 return { value: new FlagsTyped(this.readUInt64(this.fbeOffset).toNumber()), size: this.fbeSize }
1230 }
1231
1232 /**
1233 * Set the value

Callers

nothing calls this directly

Calls 2

toNumberMethod · 0.45
readUInt64Method · 0.45

Tested by

no test coverage detected