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

Method serialize

projects/JavaScript/proto/test.js:20670–20674  ·  view source on GitHub ↗

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

(value)

Source from the content-addressed store, hash-verified

20668 * @return {!number} Model begin offset
20669 */
20670 serialize (value) {
20671 let fbeBegin = this.createBegin()
20672 this.model.set(value)
20673 return this.createEnd(fbeBegin)
20674 }
20675
20676 /**
20677 * 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