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

Method get

projects/JavaScript/proto/enums.js:373–379  ·  view source on GitHub ↗

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

(defaults = new EnumChar())

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

readUInt8Method · 0.45

Tested by

no test coverage detected