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

Method get

projects/JavaScript/proto/enums.js:152–158  ·  view source on GitHub ↗

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

(defaults = new EnumByte())

Source from the content-addressed store, hash-verified

150 * @returns {!EnumByte} Result value
151 */
152 get (defaults = new EnumByte()) {
153 if ((this._buffer.offset + this.fbeOffset + this.fbeSize) > this._buffer.size) {
154 return defaults
155 }
156
157 return new EnumByte(this.readByte(this.fbeOffset))
158 }
159
160 /**
161 * Set the value

Callers

nothing calls this directly

Calls 1

readByteMethod · 0.45

Tested by

no test coverage detected