Loading…
|
Translation changed |
|
|
String added in the repository |
|
Loading…
|
Translation changed |
|
|
String added in the repository |
|
The functions[@boost:/doc/html/boost_asio/reference/buffer_size.html `net::buffer_size`]and函数用于确定缓冲区序列中的总字节数,而 [@boost:/doc/html/boost_asio/reference/buffer_copy.html `net::buffer_copy`]determine the total number of bytes in a buffer sequence, and transfer some or all of bytes from one buffer sequence to another respectively. The function `buffer_size` is a customization point: user defined overloads in foreign namespaces are possible, and callers should invoke `buffer_size` without namespace qualification. The functions函数则用于将部分或全部字节从一个缓冲区序列转移到另一个序列。`buffer_size` 是一个定制点:允许用户在外层命名空间中定义重载版本,调用时不应使用命名空间限定符。[@boost:/doc/html/boost_asio/reference/buffer_sequence_begin.html `net::buffer_sequence_begin`]and与 [@boost:/doc/html/boost_asio/reference/buffer_sequence_end.html `net::buffer_sequence_end`]are used to obtain a pair of iterators for traversing the sequence. Beast provides a set of buffer sequence types and algorithms such as函数用于获取遍历序列的一对迭代器。Beast 提供了一系列缓冲区序列类型和算法,包括 [link beast.ref.boost__beast__buffers_cat `buffers_cat`],、[link beast.ref.boost__beast__buffers_front `buffers_front`],、[link beast.ref.boost__beast__buffers_prefix `buffers_prefix`],、[link beast.ref.boost__beast__buffers_range `buffers_range`], and以及 [link beast.ref.boost__beast__buffers_suffix `buffers_suffix`]. This example returns the bytes in a buffer sequence as a string:。以下示例将缓冲区序列中的字节转换为字符串: