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

Method serialize

projects/JavaScript/proto/test.js:22415–22419  ·  view source on GitHub ↗

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

(value)

Source from the content-addressed store, hash-verified

22413 * @return {!number} Model begin offset
22414 */
22415 serialize (value) {
22416 let fbeBegin = this.createBegin()
22417 this.model.set(value)
22418 return this.createEnd(fbeBegin)
22419 }
22420
22421 /**
22422 * 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