Package-level declarations

Types

Link copied to clipboard
external object Base64
Link copied to clipboard
class CPHamtInternal(val bitmap: Int, val children: Array<KVEntryReference<CPHamtNode>>) : CPHamtNode
Link copied to clipboard
class CPHamtLeaf(val key: Long, val value: KVEntryReference<CPNode>) : CPHamtNode
Link copied to clipboard
abstract class CPHamtNode : IKVValue

Implementation of a hash array mapped trie.

Link copied to clipboard
class CPHamtSingle(val numLevels: Int, val bits: Long, val child: KVEntryReference<CPHamtNode>) : CPHamtNode
Link copied to clipboard
Link copied to clipboard
abstract class CPNodeRef
Link copied to clipboard
class CPOperationsList(val operations: Array<IOperation>) : IKVValue
Link copied to clipboard
class CPTree(val id: String, var idToHash: KVEntryReference<CPHamtNode>, val usesRoleIds: Boolean) : IKVValue
Link copied to clipboard
class CPVersion(id: Long, time: String?, author: String?, treeHash: KVEntryReference<CPTree>?, previousVersion: KVEntryReference<CPVersion>?, originalVersion: KVEntryReference<CPVersion>?, baseVersion: KVEntryReference<CPVersion>?, mergedVersion1: KVEntryReference<CPVersion>?, mergedVersion2: KVEntryReference<CPVersion>?, operations: Array<IOperation>?, operationsHash: KVEntryReference<CPOperationsList>?, numberOfOperations: Int) : IKVValue
Link copied to clipboard
object HashUtil
Link copied to clipboard
interface IKVValue

Serializable object that can be stored in a key value store

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
object Separators

To make the serialization format more concise, readable and easy to parse we just escape all data using URL encode and use different separators on each level of nested objects. Splitting the string at the separators is all we need to parse the data.

Link copied to clipboard
expect object SerializationUtil
actual object SerializationUtil
actual object SerializationUtil

Functions

Link copied to clipboard
external fun decodeURIComponent(encodedURI: String): String
Link copied to clipboard
Link copied to clipboard
external fun encodeURIComponent(input: String): String
Link copied to clipboard