Loading…
|
Translation changed |
|
|
String added in the repository |
|
Loading…
|
Translation changed |
|
|
String added in the repository |
|
The value of `n` indicates how much of the data processed (in bytes).
When `n` exceeds the number of bytes returned from the last call to `prepare`, `consume` shall behave as if `n` was equal to that number.
Remaining unconsumed data will be returned from subsequent calls to `prepare`.
[*Note:] Any buffers obtained by previous calls to `prepare` are invalidated.
This function is called to signal that the consumer (caller) of the generator has processed part of the data returned by the previous call to `prepare`.
调用此函数以向生成器发出信号,表明生成器的消费者(调用者)已处理了上一次调用‘prepare’所返回的部分数据。The value of `n` indicates how much of the data processed (in bytes).
When `n` exceeds the number of bytes returned from the last call to `prepare`, `consume` shall behave as if `n` was equal to that number.
Remaining unconsumed data will be returned from subsequent calls to `prepare`.
[*Note:] Any buffers obtained by previous calls to `prepare` are invalidated.
n 的值表示已处理的数据量(以字节为单位)。
当 n 超过上一次调用‘prepare’返回的字节数时,‘consume’ 的行为应如同 n 等于该字节数一样。
剩余的未消费数据将在后续调用‘prepare’时返回。
[*注意:] 此前调用‘prepare’所获得的任何缓冲区均会失效。