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

Method serialize

projects/JavaScript/proto/test.js:19149–19153  ·  view source on GitHub ↗

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

(value)

Source from the content-addressed store, hash-verified

19147 * @return {!number} Model begin offset
19148 */
19149 serialize (value) {
19150 let fbeBegin = this.createBegin()
19151 this.model.set(value)
19152 return this.createEnd(fbeBegin)
19153 }
19154
19155 /**
19156 * 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