kotlinx-io
kotlinx-io copied to clipboard
Kotlin multiplatform I/O library
Neither of RawSink and RawSource method's KDoc mentioned `IOException` as something these methods could throw. At the same time, it's the only way sinks and sources could report an underlying...
Added tests to cover some UTF-8-related edge cases and moved functions used primarily by tests to corresponding source sets.
As it was pointed out in https://github.com/Kotlin/kotlinx-io/pull/290#discussion_r1567268068, kotlinx-io converts different ill-formed UTF-8 subsequences differently: either the whole multi-code-point subsequence replaced with a single replacement character, or each code points is...
…and perhaps also, a `Path.toNioPath()` on JVM. Okio has a similar [`Path.toFile()`](https://square.github.io/okio/3.x/okio/okio/okio/-path/to-file.html) method, along with a complementary [`Path.toNioPath()`](https://square.github.io/okio/3.x/okio/okio/okio/-path/to-nio-path.html). While you could technically convert a `Path` into a string and then...
It'll take a while to implement proper FS API (#241), so it does make sense to provide some API for listing directories for now. Closes #222
Why does ByteString not implement Iterable? Was it a design decision, or was there just never a reason to? It seems to me like it would be incredibly useful and...
Creating a `ByteArrayInputStream` from a `ByteString` gives us an `InputStream`, which is used in many contexts in java. My understanding is that it is completely safe, since a `ByteArrayInputStream` only...
Closes #223
Currently, there are two distinct ways to load nodeJs modules implemented for js and wasmJs. It seems like there no reasons left to keep two separate implementations and it could...