readByteString

common
abstract fun readByteString(): ByteString

Removes all bytes from this and returns them as a byte string.

abstract fun readByteString(): ByteString
abstract fun readByteString(byteCount: Long): ByteString
common
abstract fun readByteString(byteCount: Long): ByteString

Removes byteCount bytes from this and returns them as a byte string.