mirror of
https://github.com/loro-dev/loro.git
synced 2025-01-22 12:57:20 +00:00
fix: miss an export mode in ffi
This commit is contained in:
parent
67f7fa54d2
commit
a6f3ddfcd9
1 changed files with 6 additions and 0 deletions
|
@ -305,6 +305,12 @@ impl LoroDoc {
|
|||
self.doc.export(loro::ExportMode::Snapshot)
|
||||
}
|
||||
|
||||
pub fn export_snapshot_at(&self, frontiers: &Frontiers) -> Result<Vec<u8>, LoroEncodeError> {
|
||||
self.doc.export(loro::ExportMode::SnapshotAt {
|
||||
version: Cow::Owned(frontiers.into()),
|
||||
})
|
||||
}
|
||||
|
||||
pub fn frontiers_to_vv(&self, frontiers: &Frontiers) -> Option<Arc<VersionVector>> {
|
||||
self.doc
|
||||
.frontiers_to_vv(&frontiers.into())
|
||||
|
|
Loading…
Reference in a new issue