readFrom

fun readFrom(input: InputStream): Buffer

Read and exhaust bytes from input into this.

fun readFrom(input: InputStream, byteCount: Long): Buffer

Read byteCount bytes from input into this.