kotlinx-io
kotlinx-io copied to clipboard
Kotlin multiplatform I/O library
Now that #131 is done (and with more work down the road to stabilize and make it full featured), this library should eventually become a good alternative to Okio. Given...
It seems that `NSData` is the Foundation type to represent immutable byte arrays, which means it corresponds to `ByteString` in purpose. It would be great to have these conversions in...
In the same vibe as https://github.com/Kotlin/kotlinx-io/issues/266 and https://github.com/Kotlin/kotlinx-io/issues/268, it would be nice to have built-in conversions in `kotlinx-io-bytestring` for the JVM `ByteBuffer` type for a full multi-platform experience. Examples: ```kotlin...
In the same vibe as https://github.com/Kotlin/kotlinx-io/issues/266, we could add conversions from JS binary types like `ArrayBuffer`, `Blob`, `Int8Array`... Dealing with binary data in JS is a bit annoying. For example,...
These unsafe operations are really needed for any zero-copy conversion between `ByteString` and other immutable APIs, or between representations that the developer knows will not be mutated during their lifespan....
This current "safe" constructor doesn't feel right. It has the following drawbacks: * the constructor syntax implies "wrapping" (as if the array is used as a property), but what actually...
In #256 I refactored the interop with nodeJs modules providing filesystem support. If previously, only functionality related to files and filesystem didn't work in a browser (with UnsupportedOperationException being thrown),...
Currently, all operations in `Buffer` operate with `byte[]` abstraction, meaning that any compound operation incurs overhead from reading and combining individual bytes. Apart from (potentially non-optimizable) overhead, such an implementation...
I require an equivalent for `java.io.File.canRead()` and `java.io.File.canWrite()` to determine whether it's possible to read from or write to a file. This information is important in the case of Ashampoo...
Listing files within a directory is one of the few file APIs my library tests require that `kotlinx-io` doesn't currently support. Similar API references: * [JVM File.listFiles](https://docs.oracle.com/javase/8/docs/api/java/io/File.html#listFiles--) * [Apple Foundation...