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

Method serialize

projects/JavaScript/proto/test.js:11912–11916  ·  view source on GitHub ↗

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

(value)

Source from the content-addressed store, hash-verified

11910 * @return {!number} Model begin offset
11911 */
11912 serialize (value) {
11913 let fbeBegin = this.createBegin()
11914 this.model.set(value)
11915 return this.createEnd(fbeBegin)
11916 }
11917
11918 /**
11919 * 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