Learn R Programming

automerge (version 0.3.0)

am_sync_state_decode: Deserialize a sync state

Description

Restores a sync state from a raw vector previously created by am_sync_state_encode(). This allows continuing a sync session from where it left off.

Usage

am_sync_state_decode(data)

Value

An am_syncstate object.

Arguments

data

A raw vector containing a serialized sync state

See Also

am_sync_state_encode(), am_sync_state()

Examples

Run this code
sync_state <- am_sync_state()
bytes <- am_sync_state_encode(sync_state)

# Restore sync state
restored <- am_sync_state_decode(bytes)
restored

Run the code above in your browser using DataLab