MCPcopy
hub / github.com/yjs/yjs / write

Method write

src/structs/ContentString.js:95–97  ·  view source on GitHub ↗

* @param {UpdateEncoderV1 | UpdateEncoderV2} encoder * @param {number} offset * @param {number} offsetEnd

(encoder, offset, offsetEnd)

Source from the content-addressed store, hash-verified

93 * @param {number} offsetEnd
94 */
95 write (encoder, offset, offsetEnd) {
96 encoder.writeString((offset === 0 && offsetEnd === 0) ? this.str : this.str.slice(offset, this.str.length - offsetEnd))
97 }
98
99 /**
100 * @return {number}

Callers

nothing calls this directly

Calls 2

writeStringMethod · 0.45
sliceMethod · 0.45

Tested by

no test coverage detected