MCPcopy
hub / github.com/daptin/daptin / yjsWritePayload

Function yjsWritePayload

yjs_test.go:55–58  ·  view source on GitHub ↗
(buf *bytes.Buffer, data []byte)

Source from the content-addressed store, hash-verified

53}
54
55func yjsWritePayload(buf *bytes.Buffer, data []byte) {
56 yjsWriteUvarint(buf, uint64(len(data)))
57 buf.Write(data)
58}
59
60// buildYjsSyncStep1 builds a valid SyncStep1 message with empty state vector.
61func buildYjsSyncStep1() []byte {

Callers 3

buildYjsSyncStep1Function · 0.85
buildYjsUpdateFunction · 0.85
buildYjsAwarenessFunction · 0.85

Calls 2

yjsWriteUvarintFunction · 0.85
WriteMethod · 0.45

Tested by

no test coverage detected