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

Method serialize

projects/JavaScript/proto/test.js:14614–14618  ·  view source on GitHub ↗

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

(value)

Source from the content-addressed store, hash-verified

14612 * @return {!number} Model begin offset
14613 */
14614 serialize (value) {
14615 let fbeBegin = this.createBegin()
14616 this.model.set(value)
14617 return this.createEnd(fbeBegin)
14618 }
14619
14620 /**
14621 * 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