tuweni / org.apache.tuweni.ssz / SSZ / encode

encode

static fun encode(fn: Consumer<SSZWriter!>!): Bytes! (source)

Encode values to a Bytes value.

Parameters

fn - Consumer<SSZWriter!>!: A consumer that will be provided with a SSZWriter that can consume values.

Return
Bytes!: The SSZ encoding in a Bytes value.