-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add some useful extensions #4
Comments
Wishlist from my side (maybe all, or some of them are already included):
Would be nice to provide them as extension functions to allow easily writing and discovery. |
|
|
Not sure if this is the right issue to request this, but would it make sense to move the goodies from https://github.com/ktorio/ktor/blob/7da470df9c5f067605503badf1a0d31ab9272c56/ktor-utils/ktor-utils-jvm/src/io/ktor/util/cio/FileChannels.kt into kotlinx-io? |
We're rebooting the kotlinx-io development (see #131), all issues related to the previous versions will be closed. Consider reopening it if the issue remains (or the feature is still missing) in a new version. |
Let's consider to add some useful extensions:
fun String.toByteReadChannel(charset)
interface Closeable
ObjectPool<T>.use(block):R
readUntil
for primitive types andByteArray
readLine
withCharsetDecoder
readLine
until delimiterInput.copyTo(Output)
+joinTo
ByteWriteChannel.writeFully(Input)
Jvm integration
Charset shortcuts:
ISO_8859_1
Input/Output
BE
andLE
API for reading and writing(including primitive types)The text was updated successfully, but these errors were encountered: