Skip to content

Latest commit

 

History

History
38 lines (31 loc) · 1.02 KB

readme.adoc

File metadata and controls

38 lines (31 loc) · 1.02 KB

Closeable IO Streams

k closeable io stream docs dokka ff69b4 closeable io stream

Pure Kotlin interface definitions for a closeable byte stream reader and writer.

Import

build.gradle.kts
  implementation("io.k-libs:closeable-io-stream:0.1.0")

Usage

class MyReader : CloseableByteReader {
  fun read(buffer: ByteArray, offset: Int, max: Int): Int {
    TODO("I'm reading some bytes!")
  }
  fun close() {
    TODO("I'm closing a resource!")
  }
}