Output
expect interface Output : Appendable, Closeable
This shouldn’t be implemented directly. Inherit AbstractOutput instead.
Properties
abstract var |
Functions
abstract fun append( |
|
abstract fun close(): Unit |
|
abstract fun flush(): Unit |
|
open fun open fun open fun open fun |
|
Extension Functions
fun Output.afterHeadWrite(current: ChunkBuffer): Unit |
|
fun Output.append( fun Output.append( |
|
fun Output.prepareWriteHead( |
|
fun Output.writeFully( fun Output.writeFully( fun Output.writeFully( fun Output.writeFully( fun Output.writeFully(bb: ByteBuffer): Unit |
|
fun Output.writeFullyLittleEndian( fun Output.writeFullyLittleEndian( fun Output.writeFullyLittleEndian( fun Output.writeFullyLittleEndian( fun Output.writeFullyLittleEndian( fun Output.writeFullyLittleEndian( |
|
fun Output.writePacket(packet: ByteReadPacket): Unit |
|
fun Output. Writes text characters in range [fromIndex .. toIndex) with the specified encoder fun Output.writeText( fun Output.writeText( Writes text characters in range [fromIndex .. toIndex) with the specified charset |
|
Append number of chunks invoking block function while the returned value is true. Depending on the output underlying implementation it could invoke block function with the same buffer several times however it is guaranteed that it is always non-empty. |
|
Append number of chunks invoking block function while the returned value is positive. If returned value is positive then it will be invoked again with a buffer having at least requested number of bytes space (could be the same buffer as before if it complies to the restriction). |
Inheritors
abstract class AbstractOutput : Appendable, Output The default Output implementation. |
|
expect class A read-write facade to actual buffer of fixed size. Multiple views could share the same actual buffer. Concurrent unsafe. The only concurrent-safe operation is release. In most cases ByteReadPacket and BytePacketBuilder should be used instead. |