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

Method get

projects/JavaScript/proto/enums.js:4648–4658  ·  view source on GitHub ↗

* Get the struct value * @this {!FieldModelEnums} * @param {!Enums} fbeValue Default value, defaults is new Enums() * @returns {!Enums} Enums value

(fbeValue = new Enums())

Source from the content-addressed store, hash-verified

4646 * @returns {!Enums} Enums value
4647 */
4648 get (fbeValue = new Enums()) {
4649 let fbeBegin = this.getBegin()
4650 if (fbeBegin === 0) {
4651 return fbeValue
4652 }
4653
4654 let fbeStructSize = this.readUInt32(0)
4655 this.getFields(fbeValue, fbeStructSize)
4656 this.getEnd(fbeBegin)
4657 return fbeValue
4658 }
4659
4660 /**
4661 * Get the struct fields values

Callers 10

getFieldsMethod · 0.45
deserializeMethod · 0.45
getFieldsMethod · 0.45
deserializeMethod · 0.45
responseMethod · 0.45
rejectMethod · 0.45
watchdogRequestsMethod · 0.45
responseMethod · 0.45
rejectMethod · 0.45
watchdogRequestsMethod · 0.45

Calls 4

getBeginMethod · 0.95
getFieldsMethod · 0.95
getEndMethod · 0.95
readUInt32Method · 0.45

Tested by

no test coverage detected