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

Method get

projects/JavaScript/proto/fbe.js:1182–1188  ·  view source on GitHub ↗

* Get the value * @this {!FieldModelByte} * @param {number=} defaults Default value, defaults is 0 * @returns {!number} Result value

(defaults = 0)

Source from the content-addressed store, hash-verified

1180 * @returns {!number} Result value
1181 */
1182 get (defaults = 0) {
1183 if ((this._buffer.offset + this.fbeOffset + this.fbeSize) > this._buffer.size) {
1184 return defaults
1185 }
1186
1187 return this.readByte(this.fbeOffset)
1188 }
1189
1190 /**
1191 * Set the value

Callers

nothing calls this directly

Calls 1

readByteMethod · 0.45

Tested by

no test coverage detected