For the latest stable version, please use Emilua API 0.10! |
stream.read_all
Description
Read data until the supplied buffer is full and blocks current fiber until it completes or errs.
Returns the buffer
's size (number of bytes read).
This operation is implemented in terms of zero or more calls to the stream’s async_read_some function, and is known as a composed operation. The program must ensure that the stream performs no other read operations (such as async_read, the stream’s async_read_some function, or any other composed operations that perform reads) until this operation completes.