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

Method serialize

projects/JavaScript/proto/test.js:23568–23572  ·  view source on GitHub ↗

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

(value)

Source from the content-addressed store, hash-verified

23566 * @return {!number} Model begin offset
23567 */
23568 serialize (value) {
23569 let fbeBegin = this.createBegin()
23570 this.model.set(value)
23571 return this.createEnd(fbeBegin)
23572 }
23573
23574 /**
23575 * 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