suspend fun AsyncFile.readAwait(buffer: Buffer, offset: Int, position: Long, length: Int): Buffer
Reads length bytes of data from the file at position position in the file, asynchronously.
buffer
- the buffer to read into
offset
- the offset into the buffer where the data will be read
position
- the position in the file where to start reading
length
- the number of bytes to read
handler
- the handler to call when the write is complete
Returna
reference to this, so the API can be used fluently *