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

Method toString

projects/JavaScript/proto/test.js:11085–11139  ·  view source on GitHub ↗

* Convert struct to string * @this {!StructNested} * @returns {!string} Struct value string

()

Source from the content-addressed store, hash-verified

11083 * @returns {!string} Struct value string
11084 */
11085 toString () {
11086 let result = ''
11087 result += 'StructNested('
11088 result += super.toString()
11089 result += ',f1000='
11090 result += this.f1000.toString()
11091 result += ',f1001='
11092 if (this.f1001 != null) {
11093 result += this.f1001.toString()
11094 } else {
11095 result += 'null'
11096 }
11097 result += ',f1002='
11098 result += this.f1002.toString()
11099 result += ',f1003='
11100 if (this.f1003 != null) {
11101 result += this.f1003.toString()
11102 } else {
11103 result += 'null'
11104 }
11105 result += ',f1004='
11106 result += this.f1004.toString()
11107 result += ',f1005='
11108 if (this.f1005 != null) {
11109 result += this.f1005.toString()
11110 } else {
11111 result += 'null'
11112 }
11113 result += ',f1006='
11114 result += this.f1006.toString()
11115 result += ',f1007='
11116 if (this.f1007 != null) {
11117 result += this.f1007.toString()
11118 } else {
11119 result += 'null'
11120 }
11121 result += ',f1008='
11122 result += this.f1008.toString()
11123 result += ',f1009='
11124 if (this.f1009 != null) {
11125 result += this.f1009.toString()
11126 } else {
11127 result += 'null'
11128 }
11129 result += ',f1010='
11130 result += this.f1010.toString()
11131 result += ',f1011='
11132 if (this.f1011 != null) {
11133 result += this.f1011.toString()
11134 } else {
11135 result += 'null'
11136 }
11137 result += ')'
11138 return result
11139 }
11140
11141 /**
11142 * Inspect struct

Callers 1

[util.inspect.custom]Method · 0.95

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected