serialization-encoding / net.corda.impl.serialization.encoding / FlushAverseOutputStream

FlushAverseOutputStream

class FlushAverseOutputStream : OutputStream

Has an empty flush implementation. This is because Kryo keeps calling flush all the time, which stops the Snappy stream from building up big chunks to compress and instead keeps compressing small chunks giving terrible compression ratio.

Constructors

<init>

Has an empty flush implementation. This is because Kryo keeps calling flush all the time, which stops the Snappy stream from building up big chunks to compress and instead keeps compressing small chunks giving terrible compression ratio.

FlushAverseOutputStream(delegate: OutputStream)

Functions

close

fun close(): Unit

write

fun write(b: Int): Unit
fun write(b: ByteArray, off: Int, len: Int): Unit