readBytes
@DeprecatedSinceKotlin
(
"1.3"
,
"1.5"
)
fun
InputStream
.
readBytes
(
estimatedSize
:
Int
=
DEFAULT_BUFFER_SIZE
)
:
ByteArray
(source)
Reads this stream completely into a byte array.
Note : It is the caller's responsibility to close this stream.