Output
This shouldn't be implemented directly. Inherit AbstractOutput instead.
This shouldn't be implemented directly. Inherit AbstractOutput instead.
Functions
append
Link copied to clipboard
expect abstract fun append(csq: CharArray, start: Int, end: Int): Appendable
Content copied to clipboard
expect abstract fun append(value: CharSequence?, startIndex: Int, endIndex: Int): Appendable
Content copied to clipboard
actual abstract fun append(csq: CharArray, start: Int, end: Int): Appendable
Content copied to clipboard
actual abstract fun append(csq: CharArray, start: Int, end: Int): Appendable
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Content copied to clipboard
Content copied to clipboard
Link copied to clipboard
Properties
Inheritors
Extensions
Link copied to clipboard
Link copied to clipboard
fun Output.append(csq: CharSequence, start: Int = 0, end: Int = csq.length): Appendable
Content copied to clipboard
Link copied to clipboard
fun Output.prepareWriteHead(capacity: Int, current: ChunkBuffer?): ChunkBuffer
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun Output.writeFully(src: ByteArray, offset: Int = 0, length: Int = src.size - offset)
Content copied to clipboard
fun Output.writeFully(src: ShortArray, offset: Int = 0, length: Int = src.size - offset)
Content copied to clipboard
fun Output.writeFully(src: IntArray, offset: Int = 0, length: Int = src.size - offset)
Content copied to clipboard
fun Output.writeFully(src: LongArray, offset: Int = 0, length: Int = src.size - offset)
Content copied to clipboard
fun Output.writeFully(src: FloatArray, offset: Int = 0, length: Int = src.size - offset)
Content copied to clipboard
fun Output.writeFully(src: DoubleArray, offset: Int = 0, length: Int = src.size - offset)
Content copied to clipboard
inline fun Output.writeFully(array: UByteArray, offset: Int = 0, length: Int = array.size - offset)
Content copied to clipboard
inline fun Output.writeFully(array: UShortArray, offset: Int = 0, length: Int = array.size - offset)
Content copied to clipboard
inline fun Output.writeFully(array: UIntArray, offset: Int = 0, length: Int = array.size - offset)
Content copied to clipboard
inline fun Output.writeFully(array: ULongArray, offset: Int = 0, length: Int = array.size - offset)
Content copied to clipboard
fun Output.writeFully(src: <ERROR CLASS><<ERROR CLASS>>, offset: Int, length: Int)
Content copied to clipboard
fun Output.writeFully(src: <ERROR CLASS><<ERROR CLASS>>, offset: Long, length: Long)
Content copied to clipboard
Link copied to clipboard
fun Output.writeFullyLittleEndian(source: UShortArray, offset: Int = 0, length: Int = source.size - offset)
Content copied to clipboard
fun Output.writeFullyLittleEndian(source: ShortArray, offset: Int = 0, length: Int = source.size - offset)
Content copied to clipboard
fun Output.writeFullyLittleEndian(source: UIntArray, offset: Int = 0, length: Int = source.size - offset)
Content copied to clipboard
fun Output.writeFullyLittleEndian(source: IntArray, offset: Int = 0, length: Int = source.size - offset)
Content copied to clipboard
fun Output.writeFullyLittleEndian(source: ULongArray, offset: Int = 0, length: Int = source.size - offset)
Content copied to clipboard
fun Output.writeFullyLittleEndian(source: LongArray, offset: Int = 0, length: Int = source.size - offset)
Content copied to clipboard
fun Output.writeFullyLittleEndian(source: FloatArray, offset: Int = 0, length: Int = source.size - offset)
Content copied to clipboard
fun Output.writeFullyLittleEndian(source: DoubleArray, offset: Int = 0, length: Int = source.size - offset)
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Content copied to clipboard
fun Output.writeText(text: CharSequence, fromIndex: Int = 0, toIndex: Int = text.length, charset: Charset = Charsets.UTF_8)
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun Output.writeWhileSize(initialSize: Int = 1, block: (Buffer) -> Int)
Content copied to clipboard
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).