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

Method get

projects/JavaScript/proto/test.js:374–380  ·  view source on GitHub ↗

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

(defaults = new EnumTyped())

Source from the content-addressed store, hash-verified

372 * @returns {!EnumTyped} Result value
373 */
374 get (defaults = new EnumTyped()) {
375 if ((this._buffer.offset + this.fbeOffset + this.fbeSize) > this._buffer.size) {
376 return defaults
377 }
378
379 return new EnumTyped(this.readUInt8(this.fbeOffset))
380 }
381
382 /**
383 * Set the value

Callers 15

getFieldsMethod · 0.45
deserializeMethod · 0.45
getFieldsMethod · 0.45
deserializeMethod · 0.45
getFieldsMethod · 0.45
deserializeMethod · 0.45
getFieldsMethod · 0.45
deserializeMethod · 0.45
getFieldsMethod · 0.45
deserializeMethod · 0.45
getFieldsMethod · 0.45
deserializeMethod · 0.45

Calls 1

readUInt8Method · 0.45

Tested by

no test coverage detected