ByteArrayOutputStream

class ByteArrayOutputStream(size: Int) : ByteArrayOutputStream

ByteArrayOutputStream provides direct (unsafe) access to the backing byte array (without requiring it to be copied).

Parameters

size

The initial size of the backing byte array.

Constructors

Link copied to clipboard
fun ByteArrayOutputStream(size: Int)

Construct a new ByteArrayOutputStream.

Functions

Link copied to clipboard
open override fun close()
Link copied to clipboard
open override fun flush()
Link copied to clipboard
open fun reset()
Link copied to clipboard
open fun size(): Int
Link copied to clipboard
open fun toByteArray(): ByteArray
Link copied to clipboard
open override fun toString(): String
open fun toString(p0: Charset): String
open fun toString(p0: Int): String
open fun toString(p0: String): String
Link copied to clipboard
open override fun write(p0: Int)
open fun write(p0: ByteArray)
open override fun write(    p0: ByteArray,     p1: Int,     p2: Int)
Link copied to clipboard
open fun writeBytes(p0: ByteArray)
Link copied to clipboard
open fun writeTo(p0: OutputStream)

Properties

Link copied to clipboard
val buf: ByteArray
Link copied to clipboard
val count: Int
Link copied to clipboard
val unsafeBytes: ByteArray

The backing byte array. Do not copy it.