MCPcopy Create free account
hub / github.com/editablejs/editable / writeUpdate

Function writeUpdate

packages/yjs-protocols/src/sync.ts:90–93  ·  view source on GitHub ↗
(encoder: encoding.Encoder, update: Uint8Array)

Source from the content-addressed store, hash-verified

88 * @param update
89 */
90export const writeUpdate = (encoder: encoding.Encoder, update: Uint8Array) => {
91 encoding.writeVarUint(encoder, messageYjsUpdate)
92 encoding.writeVarUint8Array(encoder, update)
93}
94
95/**
96 * Read and apply Structs and then DeleteStore to a y instance.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…