write

abstract fun <T : Any> write(output: OutputStream, config: T)

Writes the given config object to the output stream.

Parameters

output

The output stream to write to.

config

The config object to serialize.

Throws

if serialization fails.