Skip to content

okio / okio / BufferedSource / request

request

(js, jvm, native) abstract fun request(byteCount:Long):Boolean

Returns true when the buffer contains at least byteCount bytes, expanding it as necessary. Returns false if the source is exhausted before the requested bytes can be read.