Module: Y::Lib0::Sync
- Defined in:
- lib/y/lib0/sync.rb
Class Method Summary collapse
- .read_sync_step1(decoder, encoder, doc) ⇒ Object
- .read_sync_step2(decoder, doc, _transaction_origin) ⇒ Object
Class Method Details
.read_sync_step1(decoder, encoder, doc) ⇒ Object
6 7 8 |
# File 'lib/y/lib0/sync.rb', line 6 def self.read_sync_step1(decoder, encoder, doc) write_sync_step2(encoder, doc, Decoding.read_var_uint8_array(decoder)) end |
.read_sync_step2(decoder, doc, _transaction_origin) ⇒ Object
10 11 12 13 |
# File 'lib/y/lib0/sync.rb', line 10 def self.read_sync_step2(decoder, doc, _transaction_origin) update = Decoding.read_var_uint8_array(decoder) doc.sync(update) end |