encode To Stream
fun <T> Toml.encodeToStream(serializer: SerializationStrategy<T>, value: T, outputStream: OutputStream)
Serializes value into outputStream using serializer.
Note that when finished, outputStream is automatically closed.
See also
Throws
Toml Encoding Exception
if value cannot be serialized.
Serializes value into outputStream using the serializer retrieved from reified type parameter.
Note that when finished, outputStream is automatically closed.
See also
Throws
Toml Encoding Exception
if value cannot be serialized.