msgid ""
msgstr ""
"Project-Id-Version: Chinese (Simplified Han script) (Boost Beast Translation "
"(zh_Hans))\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-06-06 20:29+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: Chinese (Simplified Han script) <https://"
"insights.cppalliance.org/weblate/projects/boost-beast-documentation-zh_Hans/"
"doc-qbk-07-concepts-buffersgenerator-qbk/zh_Hans/>\n"
"Language: zh_Hans\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=1; plural=0;\n"
"X-Generator: Weblate 2026.5\n"

#. type: section title
#: 10
#, fuzzy
msgid "BuffersGenerator"
msgstr "BuffersGenerator"

#. type: paragraph
#: 12
#, fuzzy
msgid ""
"A [*BuffersGenerator] provides a generalized interface for generating "
"serialized data for sequential processing."
msgstr ""
"A [*BuffersGenerator] provides a generalized interface for generating "
"serialized data for sequential processing."

#. type: paragraph
#: 15
#, fuzzy
msgid ""
"The generator will be asked to produce buffers. The consuming code will "
"signal how much of the data has been consumed, and repeatedly query for "
"buffers until no more data is available, or the generator indicates an error "
"condition."
msgstr ""
"The generator will be asked to produce buffers. The consuming code will "
"signal how much of the data has been consumed, and repeatedly query for "
"buffers until no more data is available, or the generator indicates an error "
"condition."

#. type: paragraph
#: 19
#, fuzzy
msgid ""
"In this way, serializers can be adapted as [*BuffersGenerator], for example "
"[link beast.ref.boost__beast__http__message_generator "
"`http::message_generator`] which provides a type-erased interface for a "
"variety of concrete http message types."
msgstr ""
"In this way, serializers can be adapted as [*BuffersGenerator], for example "
"[link beast.ref.boost__beast__http__message_generator "
"`http::message_generator`] which provides a type-erased interface for a "
"variety of concrete http message types."

#. type: paragraph
#: 24
#, fuzzy
msgid ""
"Overloads of [link beast.ref.boost__beast__write `write`] and [link "
"beast.ref.boost__beast__async_write `async_write`] operations are provided "
"as free functions. These operations will consume the output of a "
"[*BuffersGenerator] and process the data by writing them to a "
"__SyncWriteStream__ or __AsyncWriteStream__ respectively."
msgstr ""
"Overloads of [link beast.ref.boost__beast__write `write`] and [link "
"beast.ref.boost__beast__async_write `async_write`] operations are provided "
"as free functions. These operations will consume the output of a "
"[*BuffersGenerator] and process the data by writing them to a "
"__SyncWriteStream__ or __AsyncWriteStream__ respectively."

#. type: heading
#: 30
#, fuzzy
msgid "Associated Types"
msgstr "Associated Types"

#. type: list
#: 32
#, fuzzy
msgid ""
"* [link beast.ref.boost__beast__is_buffers_generator "
"`is_buffers_generator`]\n"
"* __ConstBufferSequence__"
msgstr ""
"* [link beast.ref.boost__beast__is_buffers_generator "
"`is_buffers_generator`]\n"
"* __ConstBufferSequence__"

#. type: heading
#: 35
#, fuzzy
msgid "Requirements"
msgstr "Requirements"

#. type: paragraph
#: 37
#, fuzzy
msgid "In this table:"
msgstr "In this table:"

#. type: list
#: 39
#, fuzzy
msgid ""
"* `G` denotes a type meeting the requirements of [*BuffersGenerator].\n"
"* `g` denotes a value of type `G`.\n"
"* `c` denotes a possibly-const value of type `G`.\n"
"* `n` is a value of type `std::size_t`.\n"
"* `ec` is a value of type [link beast.ref.boost__beast__error_code "
"`error_code&`]."
msgstr ""
"* `G` denotes a type meeting the requirements of [*BuffersGenerator].\n"
"* `g` denotes a value of type `G`.\n"
"* `c` denotes a possibly-const value of type `G`.\n"
"* `n` is a value of type `std::size_t`.\n"
"* `ec` is a value of type [link beast.ref.boost__beast__error_code "
"`error_code&`]."

#. type: table title
#: 45
#, fuzzy
msgid "Valid expressions"
msgstr "Valid expressions"

#. type: table cell
#: 45
#, fuzzy
msgid "Expression"
msgstr "Expression"

#. type: table cell
#: 45
#, fuzzy
msgid "Type"
msgstr "Type"

#. type: table cell
#: 45
#, fuzzy
msgid "Semantics, Pre/Post-conditions"
msgstr "Semantics, Pre/Post-conditions"

#. type: table cell
#.
#: 45
msgctxt "45"
msgid "`G::const_buffers_type`"
msgstr ""

#. type: table cell
#: 45
#, fuzzy
msgid ""
"A type which meets the requirements of __ConstBufferSequence__. This is the "
"type of buffer returned by `g.prepare(ec)`."
msgstr ""
"A type which meets the requirements of __ConstBufferSequence__. This is the "
"type of buffer returned by `g.prepare(ec)`."

#. type: table cell
#: 45
#, fuzzy
msgid "`c.is_done()`"
msgstr "`c.is_done()`"

#. type: table cell
#: 45
#, fuzzy
msgid "`bool`"
msgstr "`bool`"

#. type: table cell
#: 45
#, fuzzy
msgid ""
"Called to ask the generator for its completion status.\n"
"\n"
"A generator has completed when no new buffer will be produced and previously "
"produced buffers have been fully consumed.\n"
"\n"
"[*Note:] The result of invoking `prepare` on `g` once it has completed is "
"unspecified."
msgstr ""
"Called to ask the generator for its completion status.\n"
"\n"
"A generator has completed when no new buffer will be produced and previously "
"produced buffers have been fully consumed.\n"
"\n"
"[*Note:] The result of invoking `prepare` on `g` once it has completed is "
"unspecified."

#. type: table cell
#: 45
#, fuzzy
msgid "`g.prepare(ec)`"
msgstr "`g.prepare(ec)`"

#. type: table cell
#: 45
#, fuzzy
msgid ""
"Called to ask the generator to produce buffers containing data for "
"processing.\n"
"\n"
"The returned value is the __ConstBufferSequence__ representing unconsumed "
"data.\n"
"\n"
"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.\n"
"\n"
"If no unconsumed data is available, this operation shall make progress to "
"eventually reach completion.\n"
"\n"
"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.\n"
"\n"
"The capacity of the buffer returned is defined by the generator "
"implementation.\n"
"\n"
"[*Note:] Any buffers obtained by previous calls to `prepare` are invalidated."
msgstr ""
"Called to ask the generator to produce buffers containing data for "
"processing.\n"
"\n"
"The returned value is the __ConstBufferSequence__ representing unconsumed "
"data.\n"
"\n"
"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.\n"
"\n"
"If no unconsumed data is available, this operation shall make progress to "
"eventually reach completion.\n"
"\n"
"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.\n"
"\n"
"The capacity of the buffer returned is defined by the generator "
"implementation.\n"
"\n"
"[*Note:] Any buffers obtained by previous calls to `prepare` are invalidated."

#. type: table cell
#: 45
#, fuzzy
msgid "`g.consume(n)`"
msgstr "`g.consume(n)`"

#. type: table cell
#: 45
#, fuzzy
msgid ""
"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`.\n"
"\n"
"The value of `n` indicates how much of the data processed (in bytes).\n"
"\n"
"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.\n"
"\n"
"Remaining unconsumed data will be returned from subsequent calls to "
"`prepare`.\n"
"\n"
"[*Note:] Any buffers obtained by previous calls to `prepare` are invalidated."
msgstr ""
"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`.\n"
"\n"
"The value of `n` indicates how much of the data processed (in bytes).\n"
"\n"
"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.\n"
"\n"
"Remaining unconsumed data will be returned from subsequent calls to "
"`prepare`.\n"
"\n"
"[*Note:] Any buffers obtained by previous calls to `prepare` are invalidated."

#. type: table cell
#: 45
#, fuzzy
msgid "`is_buffers_generator<G>`"
msgstr "`is_buffers_generator<G>`"

#. type: table cell
#: 45
#, fuzzy
msgid "`std::bool_constant`"
msgstr "`std::bool_constant`"

#. type: table cell
#: 45
#, fuzzy
msgid ""
"An alias for `std::true_type` for `G`, otherwise an alias for "
"`std::false_type`."
msgstr ""
"An alias for `std::true_type` for `G`, otherwise an alias for "
"`std::false_type`."

#. type: heading
#: 120
#, fuzzy
msgid "Exemplar"
msgstr "Exemplar"

#. type: paragraph
#: 122
#, fuzzy
msgctxt "122"
msgid "```"
msgstr "```"

#. type: paragraph
#: 135
#, fuzzy
msgctxt "135"
msgid "```"
msgstr "```"

#. type: heading
#: 137
#, fuzzy
msgid "Models"
msgstr "Models"

#. type: list
#: 139
#, fuzzy
msgid ""
"* [link beast.ref.boost__beast__http__message_generator "
"`http::message_generator`]"
msgstr ""
"* [link beast.ref.boost__beast__http__message_generator "
"`http::message_generator`]"

#. type: heading
#: 141
#, fuzzy
msgid "Algorithms"
msgstr "Algorithms"

#. type: list
#: 143
#, fuzzy
msgid ""
"* [link beast.ref.boost__beast__async_write `async_write`]\n"
"* [link beast.ref.boost__beast__write `write`]"
msgstr ""
"* [link beast.ref.boost__beast__async_write `async_write`]\n"
"* [link beast.ref.boost__beast__write `write`]"
