• Home
  • Raw
  • Download

Lines Matching full:read

2 // read.hpp
26 * @defgroup read asio::read
28 * @brief Attempt to read a certain amount of data from a stream before
33 /// Attempt to read a certain amount of data from a stream before returning.
35 * This function is used to read a certain number of bytes of data from a
46 * @param s The stream from which the data is to be read. The type must support
49 * @param buffers One or more buffers into which the data will be read. The sum
50 * of the buffer sizes indicates the maximum number of bytes to read from the
58 * To read into a single data buffer use the @ref buffer function as follows:
59 * @code asio::read(s, asio::buffer(data, size)); @endcode
65 * @code asio::read(
70 std::size_t read(SyncReadStream& s, const MutableBufferSequence& buffers);
72 /// Attempt to read a certain amount of data from a stream before returning.
74 * This function is used to read a certain number of bytes of data from a
85 * @param s The stream from which the data is to be read. The type must support
88 * @param buffers One or more buffers into which the data will be read. The sum
89 * of the buffer sizes indicates the maximum number of bytes to read from the
97 * To read into a single data buffer use the @ref buffer function as follows:
98 * @code asio::read(s, asio::buffer(data, size), ec); @endcode
104 * @code asio::read(
109 std::size_t read(SyncReadStream& s, const MutableBufferSequence& buffers,
112 /// Attempt to read a certain amount of data from a stream before returning.
114 * This function is used to read a certain number of bytes of data from a
125 * @param s The stream from which the data is to be read. The type must support
128 * @param buffers One or more buffers into which the data will be read. The sum
129 * of the buffer sizes indicates the maximum number of bytes to read from the
133 * whether the read operation is complete. The signature of the function object
142 * A return value of 0 indicates that the read operation is complete. A non-zero
143 * return value indicates the maximum number of bytes to be read on the next
151 * To read into a single data buffer use the @ref buffer function as follows:
152 * @code asio::read(s, asio::buffer(data, size),
160 std::size_t read(SyncReadStream& s, const MutableBufferSequence& buffers,
163 /// Attempt to read a certain amount of data from a stream before returning.
165 * This function is used to read a certain number of bytes of data from a
176 * @param s The stream from which the data is to be read. The type must support
179 * @param buffers One or more buffers into which the data will be read. The sum
180 * of the buffer sizes indicates the maximum number of bytes to read from the
184 * whether the read operation is complete. The signature of the function object
193 * A return value of 0 indicates that the read operation is complete. A non-zero
194 * return value indicates the maximum number of bytes to be read on the next
199 * @returns The number of bytes read. If an error occurs, returns the total
204 std::size_t read(SyncReadStream& s, const MutableBufferSequence& buffers,
212 * @brief Start an asynchronous operation to read a certain amount of data from
217 /// Start an asynchronous operation to read a certain amount of data from a
220 * This function is used to asynchronously read a certain number of bytes of
232 * program must ensure that the stream performs no other read operations (such
236 * @param s The stream from which the data is to be read. The type must support
239 * @param buffers One or more buffers into which the data will be read. The sum
240 * of the buffer sizes indicates the maximum number of bytes to read from the
245 * @param handler The handler to be called when the read operation completes.
263 * To read into a single data buffer use the @ref buffer function as follows:
284 /// Start an asynchronous operation to read a certain amount of data from a
287 * This function is used to asynchronously read a certain number of bytes of
297 * @param s The stream from which the data is to be read. The type must support
300 * @param buffers One or more buffers into which the data will be read. The sum
301 * of the buffer sizes indicates the maximum number of bytes to read from the
307 * whether the read operation is complete. The signature of the function object
316 * A return value of 0 indicates that the read operation is complete. A non-zero
317 * return value indicates the maximum number of bytes to be read on the next
320 * @param handler The handler to be called when the read operation completes.
338 * To read into a single data buffer use the @ref buffer function as follows:
362 #include "asio/impl/read.hpp"