jvmMain.fr.acinq.bitcoin.io.OutputStreamOutput.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bitcoin-kmp-jvm Show documentation
Show all versions of bitcoin-kmp-jvm Show documentation
A simple Kotlin Multiplatform library which implements most of the bitcoin protocol
The newest version!
package fr.acinq.bitcoin.io
import java.io.OutputStream
public class OutputStreamOutput(private val stream: OutputStream) : Output {
override fun write(buffer: ByteArray, offset: Int, count: Int) {
stream.write(buffer, offset, count)
}
override fun write(byteValue: Int) {
stream.write(byteValue)
}
}