MCPcopy
hub / github.com/yjs/yjs / encodeRelativePosition

Function encodeRelativePosition

src/utils/RelativePosition.js:219–223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

217 * @return {Uint8Array}
218 */
219export const encodeRelativePosition = rpos => {
220 const encoder = encoding.createEncoder()
221 writeRelativePosition(encoder, rpos)
222 return encoding.toUint8Array(encoder)
223}
224
225/**
226 * @param {decoding.Decoder} decoder

Callers

nothing calls this directly

Calls 2

writeRelativePositionFunction · 0.85
toUint8ArrayMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…