All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jvmMain.fr.acinq.bitcoin.io.InputStreamInput.kt Maven / Gradle / Ivy

package fr.acinq.bitcoin.io

import java.io.InputStream


public class InputStreamInput(private val stream: InputStream) : Input {

    override val availableBytes: Int get() = stream.available()

    override fun read(): Int = stream.read()

    override fun read(b: ByteArray, offset: Int, length: Int): Int = stream.read(b, offset, length)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy