Companion

object Companion

Functions

Link copied to clipboard
fun fromBencoded(bencodedValue: ByteArray): ImmutableItem

Reconstruct from raw bencoding (e.g. the bytes pulled off the wire). The bytes are kept verbatim so the target hash matches the sender's.

Link copied to clipboard

Build from a parsed v node, e.g. the v of an incoming get/put.

fun of(value: Entry): ImmutableItem

Build from an editable Entry (it is bencoded immediately).