demap

fun <K, V> demap(Kfactory: (BCHserialized) -> K, Vfactory: (BCHserialized) -> V): MutableMap<K, V>

Deserialize a map of key value pair objects. You must pass 2 factory functions that each take a buffer and returns an instance of the key or value object (consuming some of the buffer)


fun <K, V> demap(ret: AbstractMutableMap<K, V>, Kfactory: (BCHserialized) -> K, Vfactory: (BCHserialized) -> V): AbstractMutableMap<K, V>
fun <K, V> demap(ret: HashMap<K, V>, Kfactory: (BCHserialized) -> K, Vfactory: (BCHserialized) -> V): HashMap<K, V>