Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ikorennoy/kuring

Kotlin asynchronous file I/O based on Linux io_uring interface
https://github.com/ikorennoy/kuring

file-io io-uring jvm kotlin kotlin-coroutines

Last synced: about 2 months ago
JSON representation

Kotlin asynchronous file I/O based on Linux io_uring interface

Awesome Lists containing this project

README

        

# KUring

KUring provides an asynchronous file I/O API based on the Linux io_uring interface.

## KUring Features

* Fully asynchronous io_uring based file I/O API
* API comes in two kinds: Buffered and Direct I/O
* API for linear access to file (depends on your file system)
* Using a wide range of io_uring features such as polling, registered buffers/files

## Examples
```kotlin
val executor = EventExecutor.initDefault()
val file = AsyncFile.open(Paths.get("path/to/file"), eventExecutor)
val buffer = ByteBuffer.allocateDirect(1024)
val readBytes = file.read(buffer)
```