okio / okio / BufferedSource / readByteString

readByteString

(js, jvm, native) abstract fun readByteString():ByteString

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

(js, jvm, native) abstract fun readByteString(byteCount:Long):ByteString

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