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-07 10:58+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-bodyreader-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 "BodyReader"
msgstr "BodyReader"

#. type: paragraph
#: 12
#, fuzzy
msgid ""
"A [*BodyReader] provides an online algorithm to transfer a series of zero or "
"more buffers containing parsed body octets into a message container. The "
"__parser__ creates an instance of this type when needed, and calls into it "
"zero or more times to transfer buffers. The interface of [*BodyReader] is "
"intended to allow the conversion of buffers into these scenarios for "
"representation:"
msgstr ""
"A [*BodyReader] provides an online algorithm to transfer a series of zero or "
"more buffers containing parsed body octets into a message container. The "
"__parser__ creates an instance of this type when needed, and calls into it "
"zero or more times to transfer buffers. The interface of [*BodyReader] is "
"intended to allow the conversion of buffers into these scenarios for "
"representation:"

#. type: list
#: 19
#, fuzzy
msgid ""
"* Storing a body in a dynamic buffer\n"
"* Storing a body in a user defined container with a custom allocator\n"
"* Transformation of incoming body data before storage, for example"
msgstr ""
"* Storing a body in a dynamic buffer\n"
"* Storing a body in a user defined container with a custom allocator\n"
"* Transformation of incoming body data before storage, for example"

#. type: list
#: 23
#, fuzzy
msgid "* Saving body data to a file"
msgstr "* Saving body data to a file"

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

#. type: list
#: 27
#, fuzzy
msgid ""
"* [link beast.ref.boost__beast__http__is_body_reader `is_body_reader`]\n"
"* __Body__"
msgstr ""
"* [link beast.ref.boost__beast__http__is_body_reader `is_body_reader`]\n"
"* __Body__"

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

#. type: paragraph
#: 33
#, fuzzy
msgid "These requirements may undergo non-backward compatible"
msgstr "These requirements may undergo non-backward compatible"

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

#. type: list
#: 39
#, fuzzy
msgid ""
"* `R` denotes a type meeting the requirements of [*BodyReader].\n"
"* `B` denotes a __Body__ where"
msgstr ""
"* `R` denotes a type meeting the requirements of [*BodyReader].\n"
"* `B` denotes a __Body__ where"

#. type: list
#: 42
#, fuzzy
msgid ""
"* `a` denotes a value of type `R`.\n"
"* `b` is an object whose type meets the requirements of "
"__ConstBufferSequence__\n"
"* `h` denotes a value of type `header<isRequest, Fields>&`.\n"
"* `v` denotes a value of type `Body::value_type&`.\n"
"* `n` is a value of type `boost::optional<std::uint64_t>`.\n"
"* `ec` is a value of type [link beast.ref.boost__beast__error_code "
"`error_code&`]."
msgstr ""
"* `a` denotes a value of type `R`.\n"
"* `b` is an object whose type meets the requirements of "
"__ConstBufferSequence__\n"
"* `h` denotes a value of type `header<isRequest, Fields>&`.\n"
"* `v` denotes a value of type `Body::value_type&`.\n"
"* `n` is a value of type `boost::optional<std::uint64_t>`.\n"
"* `ec` is a value of type [link beast.ref.boost__beast__error_code "
"`error_code&`]."

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

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

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

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

#. type: table cell
#: 49
#, fuzzy
msgid "`R{h,v};`"
msgstr "`R{h,v};`"

#. type: table cell
#: 49
#, fuzzy
msgid ""
"Constructible from `h` and `v`. The lifetime of `h` and `v` is guaranteed to "
"end no earlier than after the `R` is destroyed. The reader shall not access "
"the contents of `h` or `v` before the first call to `init`, permitting lazy "
"construction of the message."
msgstr ""
"Constructible from `h` and `v`. The lifetime of `h` and `v` is guaranteed to "
"end no earlier than after the `R` is destroyed. The reader shall not access "
"the contents of `h` or `v` before the first call to `init`, permitting lazy "
"construction of the message."

#. type: table cell
#: 49
#, fuzzy
msgid "`a.init(n, ec)`"
msgstr "`a.init(n, ec)`"

#. type: table cell
#: 49
#, fuzzy
msgid ""
"Called once to fully initialize the object before any calls to `put`. The "
"message body is valid before entering this function, and remains valid until "
"the reader is destroyed. The value of `n` will be set to the content length "
"of the body if known, otherwise `n` will be equal to `boost::none`. "
"Implementations of [*BodyReader] may use this information to optimize "
"allocation.\n"
"\n"
"The function will ensure that `!ec` is `true` if there was no error or set "
"to the appropriate error code if there was one."
msgstr ""
"Called once to fully initialize the object before any calls to `put`. The "
"message body is valid before entering this function, and remains valid until "
"the reader is destroyed. The value of `n` will be set to the content length "
"of the body if known, otherwise `n` will be equal to `boost::none`. "
"Implementations of [*BodyReader] may use this information to optimize "
"allocation.\n"
"\n"
"The function will ensure that `!ec` is `true` if there was no error or set "
"to the appropriate error code if there was one."

#. type: table cell
#: 49
#, fuzzy
msgid "`a.put(b,ec)`"
msgstr "`a.put(b,ec)`"

#. type: table cell
#: 49
#, fuzzy
msgid "`std::size_t`"
msgstr "`std::size_t`"

#. type: table cell
#: 49
#, fuzzy
msgid ""
"This function is called to append some or all of the buffers specified by "
"`b` into the body representation. The number of bytes inserted from `b` is "
"returned. If the number of bytes inserted is less than the total input, the "
"remainder of the input will be presented in the next call to `put`. The "
"function will ensure that `!ec` is `true` if there was no error or set to "
"the appropriate error code if there was one."
msgstr ""
"This function is called to append some or all of the buffers specified by "
"`b` into the body representation. The number of bytes inserted from `b` is "
"returned. If the number of bytes inserted is less than the total input, the "
"remainder of the input will be presented in the next call to `put`. The "
"function will ensure that `!ec` is `true` if there was no error or set to "
"the appropriate error code if there was one."

#. type: table cell
#: 49
#, fuzzy
msgid "`a.finish(ec)`"
msgstr "`a.finish(ec)`"

#. type: table cell
#: 49
#, fuzzy
msgid ""
"This function is called when no more body octets are remaining. The function "
"will ensure that `!ec` is `true` if there was no error or set to the "
"appropriate error code if there was one."
msgstr ""
"This function is called when no more body octets are remaining. The function "
"will ensure that `!ec` is `true` if there was no error or set to the "
"appropriate error code if there was one."

#. type: table cell
#: 49
#, fuzzy
msgid "`is_body_reader<B>`"
msgstr "`is_body_reader<B>`"

#. type: table cell
#: 49
#, fuzzy
msgid "`std::true_type`"
msgstr "`std::true_type`"

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

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

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

#. type: list
#: 111
#, fuzzy
msgid ""
"* [link beast.ref.boost__beast__http__basic_dynamic_body.reader "
"`basic_dynamic_body::reader`]\n"
"* [link beast.ref.boost__beast__http__basic_file_body__reader "
"`basic_file_body::reader`]\n"
"* [link beast.ref.boost__beast__http__basic_string_body.reader "
"`basic_string_body::reader`]\n"
"* [link beast.ref.boost__beast__http__buffer_body.reader "
"`buffer_body::reader`]\n"
"* [link beast.ref.boost__beast__http__empty_body.reader "
"`empty_body::reader`]\n"
"* [link beast.ref.boost__beast__http__span_body.reader `span_body::reader`]\n"
"* [link beast.ref.boost__beast__http__vector_body.reader "
"`vector_body::reader`]"
msgstr ""
"* [link beast.ref.boost__beast__http__basic_dynamic_body.reader "
"`basic_dynamic_body::reader`]\n"
"* [link beast.ref.boost__beast__http__basic_file_body__reader "
"`basic_file_body::reader`]\n"
"* [link beast.ref.boost__beast__http__basic_string_body.reader "
"`basic_string_body::reader`]\n"
"* [link beast.ref.boost__beast__http__buffer_body.reader "
"`buffer_body::reader`]\n"
"* [link beast.ref.boost__beast__http__empty_body.reader "
"`empty_body::reader`]\n"
"* [link beast.ref.boost__beast__http__span_body.reader `span_body::reader`]\n"
"* [link beast.ref.boost__beast__http__vector_body.reader "
"`vector_body::reader`]"
