encodeToBufferedSink
fun <T> <Error class: unknown class>.encodeToBufferedSink(serializer: <Error class: unknown class><T>, value: T, sink: BufferedSink)(source)
Serializes the value with serializer into a sink using JSON format and UTF-8 encoding.
Throws
SerializationException
if the given value cannot be serialized to JSON.
If an I/O error occurs and sink can't be written to.
inline fun <T> <Error class: unknown class>.encodeToBufferedSink(value: T, sink: BufferedSink)(source)
Serializes given value to a sink using UTF-8 encoding and serializer retrieved from the reified type parameter.
Throws
SerializationException
if the given value cannot be serialized to JSON.
If an I/O error occurs and sink can't be written to.