Loading…
|
Translation changed |
|
|
String added in the repository |
|
Loading…
|
Translation changed |
|
|
String added in the repository |
|
The returned value is the __ConstBufferSequence__ representing unconsumed data.
The function will ensure that `ec.failed()` is `false` if there was no error or set to the appropriate error code if there was one.
If no unconsumed data is available, this operation shall make progress to eventually reach completion.
The result of invoking `prepare` after completion or encountered error(s) is defined by the generator implementation. It can not be assumed to be meaningful or safe to do so, in general.
The capacity of the buffer returned is defined by the generator implementation.
[*Note:] Any buffers obtained by previous calls to `prepare` are invalidated.
Called to ask the generator to produce buffers containing data for processing.
调用此函数以请求生成器生成包含待处理数据的缓冲区。The returned value is the __ConstBufferSequence__ representing unconsumed data.
The function will ensure that `ec.failed()` is `false` if there was no error or set to the appropriate error code if there was one.
If no unconsumed data is available, this operation shall make progress to eventually reach completion.
The result of invoking `prepare` after completion or encountered error(s) is defined by the generator implementation. It can not be assumed to be meaningful or safe to do so, in general.
The capacity of the buffer returned is defined by the generator implementation.
[*Note:] Any buffers obtained by previous calls to `prepare` are invalidated.
返回值为代表未消费数据的 ConstBufferSequence。
如果未发生错误,该函数将确保 ec.failed() 为 false;如果发生了错误,则将其设置为相应的错误码。
如果没有可用的未消费数据,此操作应取得进展,以最终达到完成状态。
在完成或遇到错误后调用‘prepare’的结果由生成器实现定义。通常情况下,不能假定这种调用具有意义或是安全的。
返回缓冲区的容量由生成器实现定义。
[*注意:] 此前调用‘prepare’所获得的任何缓冲区均会失效。