Loading…
|
Translation changed |
|
|
String added in the repository |
|
Loading…
|
Translation changed |
|
|
String added in the repository |
|
Called one or more times after `init` succeeds. This function returns `boost::none` if all buffers representing the body have been returned in previous calls or if it sets `ec` to indicate an error. Otherwise, if there are buffers remaining the function should return a pair with the first element containing a non-zero length buffer sequence representing the next set of octets in the body, while the second element is a `bool` meaning `true` if there may be additional buffers returned on a subsequent call, or `false` if the buffer returned on this call is the last buffer representing the body. The function will ensure that`init` 成功后,该函数被调用一次或多次。若之前调用已返回代表该主体的所有缓冲区,或该函数设置 `ec` 用于指示错误,则该函数返回 `boost::none`。若仍存在剩余缓冲区,则该函数应返回一个 pair,其第一元素包含一个长度非零的缓冲区序列,用于表示该主体中下一组八位字节;其第二元素为 `bool` 类型,`true` 用于表示后续调用可能返回更多缓冲区,`false` 用于表示本次调用所返回的缓冲区为该主体最后一部分。该函数确保:若无错误,则 `!ec`is为 `true`if there was no error or set to the appropriate error code if there was one.;若存在错误,则将 `ec` 设为对应的错误码。