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

Method get

projects/JavaScript/proto/test.js:1158–1164  ·  view source on GitHub ↗

* Get the value * @this {!FieldModelFlagsTyped} * @param {FlagsTyped=} defaults Default value, defaults is new FlagsTyped() * @returns {!FlagsTyped} Result value

(defaults = new FlagsTyped())

Source from the content-addressed store, hash-verified

1156 * @returns {!FlagsTyped} Result value
1157 */
1158 get (defaults = new FlagsTyped()) {
1159 if ((this._buffer.offset + this.fbeOffset + this.fbeSize) > this._buffer.size) {
1160 return defaults
1161 }
1162
1163 return new FlagsTyped(this.readUInt64(this.fbeOffset).toNumber())
1164 }
1165
1166 /**
1167 * Set the value

Callers

nothing calls this directly

Calls 2

toNumberMethod · 0.45
readUInt64Method · 0.45

Tested by

no test coverage detected