Skip to content

Kotlin asynchronous file I/O based on Linux io_uring interface

License

Notifications You must be signed in to change notification settings

ikorennoy/kuring

Repository files navigation

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

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

About

Kotlin asynchronous file I/O based on Linux io_uring interface

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published