size

fun size(): Int

Returns the current size of the buffer.

Return

the value of the count field, which is the number of valid bytes in this output stream.

See also

java.io.ByteArrayOutputStream.count