ssz / org.apache.tuweni.ssz / SSZ / decode

decode

static fun <T : Any> decode(source: Bytes, fn: Function<SSZReader, T>): T (source)

Read and decode SSZ from a Bytes value.

Parameters

source - the SSZ encoded bytes

fn - a function that will be provided a SSZReader

- the result type of the reading function

Return
the result from the reading function