OkioMutf8Sink

class OkioMutf8Sink(sink: Sink, bytesPerWrite: Int = 1024) : Mutf8Sink(source)

A Mutf8Sink that writes its data to a Sink from the okio library.

Parameters

sink

The okio Sink to write to.

bytesPerWrite

The maximum number of bytes that will be copied to the sink's underlying destination at a time. This must be at least 1, though higher is recommended.

Throws

Constructors

Link copied to clipboard
fun OkioMutf8Sink(sink: Sink, bytesPerWrite: Int = 1024)

Functions

Link copied to clipboard
fun writeFromArray(characters: CharArray)
fun writeFromArray(characters: CharArray, range: IntRange)
fun writeFromArray(characters: CharArray, startIndex: Int, endIndex: Int)
Link copied to clipboard
fun writeFromSequence(characters: CharSequence, range: IntRange)
fun writeFromSequence(characters: CharSequence, startIndex: Int, endIndex: Int)
Link copied to clipboard
open override fun writeLength(mutf8Length: Int)