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

#. type: section title
#: 10
#, read-only
msgid "RatePolicy"
msgstr "RatePolicy"

#. type: paragraph
#: 12
#, read-only
msgid ""
"An instance of [*RatePolicy] is associated with a [link "
"beast.ref.boost__beast__basic_stream `basic_stream`], and controls the rate "
"at which bytes may be independently sent and received. This may be used to "
"achieve fine-grained bandwidth management and flow control."
msgstr ""
"An instance of [*RatePolicy] is associated with a [link "
"beast.ref.boost__beast__basic_stream `basic_stream`], and controls the rate "
"at which bytes may be independently sent and received. This may be used to "
"achieve fine-grained bandwidth management and flow control."

#. type: heading
#: 18
#, read-only
msgid "Associated Types"
msgstr "Associated Types"

#. type: list
#: 20
#, read-only
msgid ""
"* [link beast.ref.boost__beast__rate_policy_access `rate_policy_access`]"
msgstr ""
"* [link beast.ref.boost__beast__rate_policy_access `rate_policy_access`]"

#. type: paragraph
#: 23
#, read-only
msgid "These requirements may undergo non-backward compatible"
msgstr "These requirements may undergo non-backward compatible"

#. type: heading
#: 27
#, read-only
msgid "Requirements"
msgstr "Requirements"

#. type: paragraph
#: 29
#, read-only
msgid "In this table:"
msgstr "In this table:"

#. type: list
#: 31
#, read-only
msgid ""
"* `P` denotes a type that meets the requirements of [*RatePolicy].\n"
"* `x` denotes an xvalue of type `P`\n"
"* `a` denotes a value of type `P`.\n"
"* `n` denotes a value of type `std::size_t`"
msgstr ""
"* `P` denotes a type that meets the requirements of [*RatePolicy].\n"
"* `x` denotes an xvalue of type `P`\n"
"* `a` denotes a value of type `P`.\n"
"* `n` denotes a value of type `std::size_t`"

#. type: table title
#: 36
#, read-only
msgid "Valid expressions"
msgstr "Valid expressions"

#. type: table cell
#: 36
#, read-only
msgid "Expression"
msgstr "Expression"

#. type: table cell
#: 36
#, read-only
msgid "Type"
msgstr "Type"

#. type: table cell
#: 36
#, read-only
msgid "Semantics, Pre/Post-conditions"
msgstr "Semantics, Pre/Post-conditions"

#. type: table cell
#: 36
#, read-only
msgid "`P a(x)`"
msgstr "`P a(x)`"

#. type: table cell
#: 36
#, read-only
msgid "Requires ['MoveConstructible]."
msgstr "Requires ['MoveConstructible]."

#. type: table cell
#: 36
#, read-only
msgid "`friend rate_policy_access`"
msgstr "`friend rate_policy_access`"

#. type: table cell
#: 36
#, read-only
msgid ""
"The member functions required in `P` should be private. [link "
"beast.ref.boost__beast__rate_policy_access `rate_policy_access`] must be a "
"friend of `P` for the implementation to gain access to the required member "
"functions."
msgstr ""
"The member functions required in `P` should be private. [link "
"beast.ref.boost__beast__rate_policy_access `rate_policy_access`] must be a "
"friend of `P` for the implementation to gain access to the required member "
"functions."

#. type: table cell
#: 36
#, read-only
msgid "`a.available_read_bytes()`"
msgstr "`a.available_read_bytes()`"

#. type: table cell
#.
#: 36
#, read-only
msgctxt "36"
msgid "`std::size_t`"
msgstr "`std::size_t`"

#. type: table cell
#: 36
#, read-only
msgid ""
"This function is called by the implementation to determine the maximum "
"number of allowed bytes to be transferred in the next read operation. The "
"actual number of bytes subsequently transferred may be less than this "
"number.\n"
"\n"
"If the policy returns a value of zero, the read operation will "
"asynchronously wait until the next timer interval before retrying. When the "
"retry occurs, this function will be called again."
msgstr ""
"This function is called by the implementation to determine the maximum "
"number of allowed bytes to be transferred in the next read operation. The "
"actual number of bytes subsequently transferred may be less than this "
"number.\n"
"\n"
"If the policy returns a value of zero, the read operation will "
"asynchronously wait until the next timer interval before retrying. When the "
"retry occurs, this function will be called again."

#. type: table cell
#: 36
#, read-only
msgid "`a.available_write_bytes()`"
msgstr "`a.available_write_bytes()`"

#. type: table cell
#: 36
#, read-only
msgid ""
"This function is called by the implementation to determine the maximum "
"number of allowed bytes to be transferred in the next write operation. The "
"actual number of bytes subsequently transferred may be less than this "
"number.\n"
"\n"
"If the policy returns a value of zero, the read operation will "
"asynchronously wait until the next timer interval before retrying. When the "
"retry occurs, this function will be called again."
msgstr ""
"This function is called by the implementation to determine the maximum "
"number of allowed bytes to be transferred in the next write operation. The "
"actual number of bytes subsequently transferred may be less than this "
"number.\n"
"\n"
"If the policy returns a value of zero, the read operation will "
"asynchronously wait until the next timer interval before retrying. When the "
"retry occurs, this function will be called again."

#. type: table cell
#: 36
#, read-only
msgid "`a.transfer_read_bytes(n)`"
msgstr "`a.transfer_read_bytes(n)`"

#. type: table cell
#: 36
#, read-only
msgid ""
"The implementation calls this function to inform the policy that `n` bytes "
"were successfully transferred in the most recent read operation. The policy "
"object may optionally use this information to calculate throughputs and/or "
"inform the algorithm used to determine subsequently queried transfer "
"maximums."
msgstr ""
"The implementation calls this function to inform the policy that `n` bytes "
"were successfully transferred in the most recent read operation. The policy "
"object may optionally use this information to calculate throughputs and/or "
"inform the algorithm used to determine subsequently queried transfer "
"maximums."

#. type: table cell
#: 36
#, read-only
msgid "`a.transfer_write_bytes(n)`"
msgstr "`a.transfer_write_bytes(n)`"

#. type: table cell
#: 36
#, read-only
msgid ""
"The implementation calls this function to inform the policy that `n` bytes "
"were successfully transferred in the most recent write operation. The policy "
"object may optionally use this information to calculate throughputs and/or "
"inform the algorithm used to determine subsequently queried transfer limits."
msgstr ""
"The implementation calls this function to inform the policy that `n` bytes "
"were successfully transferred in the most recent write operation. The policy "
"object may optionally use this information to calculate throughputs and/or "
"inform the algorithm used to determine subsequently queried transfer limits."

#. type: table cell
#: 36
#, read-only
msgid "`a.on_timer()`"
msgstr "`a.on_timer()`"

#. type: table cell
#: 36
#, read-only
msgid ""
"The implementation calls this function every time the internal timer "
"expires. The policy object may optionally use this opportunity to calculate "
"elapsed time and throughput, and/or inform the algorithm used to determine "
"subsequently queried transfer limits."
msgstr ""
"The implementation calls this function every time the internal timer "
"expires. The policy object may optionally use this opportunity to calculate "
"elapsed time and throughput, and/or inform the algorithm used to determine "
"subsequently queried transfer limits."

#. type: heading
#: 115
#, read-only
msgid "Exemplar"
msgstr "Exemplar"

#. type: heading
#: 119
#, read-only
msgid "Models"
msgstr "Models"

#. type: list
#: 121
#, read-only
msgid ""
"* [link beast.ref.boost__beast__simple_rate_policy `simple_rate_policy`]\n"
"* [link beast.ref.boost__beast__unlimited_rate_policy "
"`unlimited_rate_policy`]"
msgstr ""
"* [link beast.ref.boost__beast__simple_rate_policy `simple_rate_policy`]\n"
"* [link beast.ref.boost__beast__unlimited_rate_policy "
"`unlimited_rate_policy`]"
