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

Method serialize

projects/JavaScript/proto/protoex.js:3611–3615  ·  view source on GitHub ↗

* Serialize the struct value * @this {!AccountModel} * @param {!Account} value Account value * @return {!number} Model begin offset

(value)

Source from the content-addressed store, hash-verified

3609 * @return {!number} Model begin offset
3610 */
3611 serialize (value) {
3612 let fbeBegin = this.createBegin()
3613 this.model.set(value)
3614 return this.createEnd(fbeBegin)
3615 }
3616
3617 /**
3618 * Deserialize the struct value

Callers 1

cloneMethod · 0.95

Calls 3

createBeginMethod · 0.95
createEndMethod · 0.95
setMethod · 0.45

Tested by

no test coverage detected