Get started

Package-level declarations

kotlinx-io<->Okio adapters.

Thread-safety guarantees

Until stated otherwise, types and functions provided by the library are not thread safe.

Functions

Link copied to clipboard

Returns a kotlinx.io.RawSink backed by this okio.Sink.

Link copied to clipboard

Returns a kotlinx.io.RawSource backed by this okio.Source.

Link copied to clipboard
fun RawSink.asOkioSink(): Sink

Returns a okio.Sink backed by this kotlinx.io.RawSink.

Link copied to clipboard
fun RawSource.asOkioSource(): Source

Returns a okio.Source backed by this kotlinx.io.RawSource.

Link copied to clipboard

Returns a new kotlinx.io.bytestring.ByteString instance with exactly the same content as this okio.ByteString.

Link copied to clipboard
fun ByteString.toOkioByteString(): ByteString

Returns a new okio.ByteString instance with exactly the same content as this kotlinx.io.bytestring.ByteString.