Giter VIP home page Giter VIP logo

kio's Introduction

kio

Version

A Kotlin Multiplatform IO library that supports the JS (node only), JVM, and Native targets.

Dependency

Kio releases are published to Maven Central. Replace {version} with the latest version of Kio.

implementation("dev.sitar:kio:{version}")

Quickstart

Kio allows you to interface with asynchronous and synchronous data.

Synchronous

For synchronous data, Kio provides the following interfaces:

  • AbsoluteReader
  • AbsoluteWriter
  • SequentialReader
  • SequentialWriter

A Buffer implements all of these interfaces and is very useful. It represents a sequence of bytes that can be indexed similar to a ByteArray however has the ability to grow along with the data you put into it. A Buffer keeps track of its current "read" and "write" heads, which lets you do sequential write/read operations.

Asynchronous

For asynchronous data, Kio provides the following interfaces:

  • AsyncReader
  • AsyncWriter

These may be useful for streaming data (reading a large file), and you want to process it as you read the data. They provide similar functionality to the SequentialReader/Writer, and can often be used to replace Java Input/OutputStreams (see InputStream#toAsyncReader and OutputStream#toAsyngWriter).

License

This project is published under the MIT license.

kio's People

Contributors

lost-illusi0n avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

asilemre0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.