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

Method serialize

projects/JavaScript/proto/test.js:13173–13177  ·  view source on GitHub ↗

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

(value)

Source from the content-addressed store, hash-verified

13171 * @return {!number} Model begin offset
13172 */
13173 serialize (value) {
13174 let fbeBegin = this.createBegin()
13175 this.model.set(value)
13176 return this.createEnd(fbeBegin)
13177 }
13178
13179 /**
13180 * 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