msgid ""
msgstr ""
"Project-Id-Version: Chinese (Simplified Han script) (Boost Beast Translation "
"(zh_Hans))\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-07-25 16:43+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-03-core-2-streams-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
#: 12
msgid "Streams"
msgstr "流类型"

#. type: paragraph
#: 14
msgid ""
"A __Stream__ is a communication channel where data is reliably transferred "
"as an ordered sequence of bytes. Streams are either synchronous or "
"asynchronous, and may allow reading, writing, or both. Note that a "
"particular type may model more than one concept. For example, the networking "
"types  __socket__ and __ssl_stream__ support both __SyncStream__ and "
"__AsyncStream__. All stream algorithms in Beast are declared as template "
"functions using these concepts:"
msgstr ""
"__Stream__ 是一种通信通道，数据以有序字节序列的形式在其中可靠传输。流可分为同"
"步流与异步流，可支持读操作、写操作或两者同时支持。需要注意的是，某个具体类型"
"可能同时符合多个概念模型。例如，网络库中的 __socket__ 与 __ssl_stream__ 类型"
"同时支持 __SyncStream__ 与 __AsyncStream__ 两种概念。Beast 中的所有流算法均以"
"模板函数形式声明，并使用这些概念进行约束："

#. type: table title
#: 21
msgid "Stream Concepts"
msgstr "流概念"

#. type: table cell
#: 21
msgid "Concept"
msgstr "概念"

#. type: table cell
#: 21
msgctxt "21"
msgid "Description"
msgstr "描述"

#. type: table cell
#: 21
msgid "__SyncReadStream__"
msgstr "__SyncReadStream__"

#. type: table cell
#: 21
msgid "Supports buffer-oriented blocking reads."
msgstr "用于支持面向缓冲区的阻塞读取操作。"

#. type: table cell
#: 21
msgid "__SyncWriteStream__"
msgstr "__SyncWriteStream__"

#. type: table cell
#: 21
msgid "Supports buffer-oriented blocking writes."
msgstr "用于支持面向缓冲区的阻塞写入操作。"

#. type: table cell
#: 21
msgid "__SyncStream__"
msgstr "__SyncStream__"

#. type: table cell
#: 21
msgid "A stream supporting buffer-oriented blocking reads and writes."
msgstr "一种流类型，用于支持面向缓冲区的阻塞读写操作。"

#. type: table cell
#: 21
msgid "__AsyncReadStream__"
msgstr "__AsyncReadStream__"

#. type: table cell
#: 21
msgid "Supports buffer-oriented asynchronous reads."
msgstr "用于支持面向缓冲区的异步读取操作。"

#. type: table cell
#: 21
msgid "__AsyncWriteStream__"
msgstr "__AsyncWriteStream__"

#. type: table cell
#: 21
msgid "Supports buffer-oriented asynchronous writes."
msgstr "用于支持面向缓冲区的异步写入操作。"

#. type: table cell
#: 21
msgid "__AsyncStream__"
msgstr "__AsyncStream__"

#. type: table cell
#: 21
msgid "A stream supporting buffer-oriented asynchronous reads and writes."
msgstr "一种流类型，用于支持面向缓冲区的异步读写操作。"

#. type: paragraph
#: 56
msgid ""
"These template metafunctions check whether a given type meets the "
"requirements for the various stream concepts, and some additional useful "
"utilities. The library uses these type checks internally and also provides "
"them as public interfaces so users may use the same techniques to augment "
"their own code. The use of these type checks helps provide more concise "
"errors during compilation:"
msgstr ""
"这些模板元函数用于检查某个类型是否满足各类流概念的要求，并提供一些额外的实用"
"工具。该库内部使用这些类型检查，同时也将其作为公共接口开放，方便用户用同样的"
"方式增强自己的代码。采用这些类型检查机制，有助于在编译时给出更清晰的错误提示"
"。"

#. type: table title
#: 63
msgid "Type Traits and Metafunctions"
msgstr "类型特征与元函数"

#. type: table cell
#: 63
msgid "Name"
msgstr "名称"

#. type: table cell
#: 63
msgctxt "63"
msgid "Description"
msgstr "描述"

#. type: table cell
#: 63
msgid "[link beast.ref.boost__beast__executor_type `executor_type`]"
msgstr "[link beast.ref.boost__beast__executor_type `executor_type`]"

#. type: table cell
#: 63
msgid "An alias for the type of object returned by `get_executor`."
msgstr "用于表示 `get_executor` 返回的对象类型的别名。"

#. type: table cell
#: 63
msgid "[link beast.ref.boost__beast__has_get_executor `has_get_executor`]"
msgstr "[link beast.ref.boost__beast__has_get_executor `has_get_executor`]"

#. type: table cell
#: 63
msgid "Determine if the `get_executor` member function is present."
msgstr "用于判断是否存在 `get_executor` 成员函数。"

#. type: table cell
#: 63
msgid ""
"[link beast.ref.boost__beast__is_async_read_stream `is_async_read_stream`]"
msgstr ""
"[link beast.ref.boost__beast__is_async_read_stream `is_async_read_stream`]"

#. type: table cell
#: 63
msgid "Determine if a type meets the requirements of __AsyncReadStream__."
msgstr "用于判断某个类型是否符合 __AsyncReadStream__ 概念的要求。"

#. type: table cell
#: 63
msgid "[link beast.ref.boost__beast__is_async_stream `is_async_stream`]"
msgstr "[link beast.ref.boost__beast__is_async_stream `is_async_stream`]"

#. type: table cell
#: 63
msgid ""
"Determine if a type meets the requirements of both __AsyncReadStream__ and "
"__AsyncWriteStream__."
msgstr ""
"用于判断某个类型是否同时符合 __AsyncReadStream__ 与 __AsyncWriteStream__ 概念"
"的要求。"

#. type: table cell
#: 63
msgid ""
"[link beast.ref.boost__beast__is_async_write_stream `is_async_write_stream`]"
msgstr ""
"[link beast.ref.boost__beast__is_async_write_stream `is_async_write_stream`]"

#. type: table cell
#: 63
msgid "Determine if a type meets the requirements of __AsyncWriteStream__."
msgstr "用于判断某个类型是否符合 __AsyncWriteStream__ 概念的要求。"

#. type: table cell
#: 63
msgid ""
"[link beast.ref.boost__beast__is_sync_read_stream `is_sync_read_stream`]"
msgstr ""
"[link beast.ref.boost__beast__is_sync_read_stream `is_sync_read_stream`]"

#. type: table cell
#: 63
msgid "Determine if a type meets the requirements of __SyncReadStream__."
msgstr "用于判断某个类型是否符合 __SyncReadStream__ 概念的要求。"

#. type: table cell
#: 63
msgid "[link beast.ref.boost__beast__is_sync_stream `is_sync_stream`]"
msgstr "[link beast.ref.boost__beast__is_sync_stream `is_sync_stream`]"

#. type: table cell
#: 63
msgid ""
"Determine if a type meets the requirements of both __SyncReadStream__ and "
"__SyncWriteStream__."
msgstr ""
"用于判断某个类型是否同时符合 __SyncReadStream__ 与 __SyncWriteStream__ 概念的"
"要求。"

#. type: table cell
#: 63
msgid ""
"[link beast.ref.boost__beast__is_sync_write_stream `is_sync_write_stream`]"
msgstr ""
"[link beast.ref.boost__beast__is_sync_write_stream `is_sync_write_stream`]"

#. type: table cell
#: 63
msgid "Determine if a type meets the requirements of __SyncWriteStream__."
msgstr "用于判断某个类型是否符合 __SyncWriteStream__ 概念的要求。"

#. type: paragraph
#: 109
msgid ""
"Using the type checks with `static_assert` on function or class template "
"types will provide users with helpful error messages and prevent undefined "
"behaviors. This example shows how a template function which writes to a "
"synchronous stream may check its argument:"
msgstr ""
"在函数或类模板类型上使用 `static_assert` 配合这些类型检查，可以给用户提供更清"
"晰的错误信息，同时避免未定义行为。以下示例展示一个用于向同步流写入数据的模板"
"函数，该示例演示如何对其参数类型进行检查："
