From b9fbd31f33cca574a227f80fac5e6fec13ac28c9 Mon Sep 17 00:00:00 2001 From: "Zezheng.Li" Date: Thu, 6 Jul 2023 14:33:28 +0800 Subject: [PATCH] [no ci] [Doc] fix doc (#355) --- .github/workflows/bazel.yml | 3 ++- .github/workflows/clang-format.yml | 1 + .github/workflows/linux_llvm_cov.yml | 1 + .github/workflows/ubuntu_clang.yml | 1 + .github/workflows/ubuntu_gcc.yml | 1 + .github/workflows/windows.yml | 1 + website/docs/en/struct_pack/struct_pack_type_system.md | 4 ++-- website/docs/zh/struct_pack/struct_pack_type_system.md | 10 ++++++---- 8 files changed, 15 insertions(+), 7 deletions(-) diff --git a/.github/workflows/bazel.yml b/.github/workflows/bazel.yml index dc3f2fbe7..26a5efefb 100644 --- a/.github/workflows/bazel.yml +++ b/.github/workflows/bazel.yml @@ -5,7 +5,8 @@ on: branches: [ main ] pull_request: branches: [ main ] - + workflow_dispatch: + jobs: build: runs-on: ubuntu-22.04 diff --git a/.github/workflows/clang-format.yml b/.github/workflows/clang-format.yml index ef9b6c02f..0f9cd2973 100644 --- a/.github/workflows/clang-format.yml +++ b/.github/workflows/clang-format.yml @@ -5,6 +5,7 @@ on: branches: [ main, develop ] pull_request: branches: [ main, develop ] + workflow_dispatch: jobs: build: diff --git a/.github/workflows/linux_llvm_cov.yml b/.github/workflows/linux_llvm_cov.yml index 53769b403..2c70a3257 100644 --- a/.github/workflows/linux_llvm_cov.yml +++ b/.github/workflows/linux_llvm_cov.yml @@ -3,6 +3,7 @@ name: Ubuntu 22.04 (llvm cov) on: pull_request_target: branches: [ doc ] + workflow_dispatch: jobs: build: diff --git a/.github/workflows/ubuntu_clang.yml b/.github/workflows/ubuntu_clang.yml index df2b40a49..4ff4a45fc 100644 --- a/.github/workflows/ubuntu_clang.yml +++ b/.github/workflows/ubuntu_clang.yml @@ -6,6 +6,7 @@ on: pull_request: branches: [ main, develop ] workflow_call: + workflow_dispatch: env: ccache: ON diff --git a/.github/workflows/ubuntu_gcc.yml b/.github/workflows/ubuntu_gcc.yml index b53c0547c..025a288fd 100644 --- a/.github/workflows/ubuntu_gcc.yml +++ b/.github/workflows/ubuntu_gcc.yml @@ -6,6 +6,7 @@ on: pull_request: branches: [ main, develop ] workflow_call: + workflow_dispatch: env: ccache: ON diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 5cc6ed83c..30168405e 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -6,6 +6,7 @@ on: branches: [ main, develop ] pull_request: branches: [ main, develop ] + workflow_dispatch: jobs: windows_msvc: diff --git a/website/docs/en/struct_pack/struct_pack_type_system.md b/website/docs/en/struct_pack/struct_pack_type_system.md index aa2c4bba5..8a710c675 100644 --- a/website/docs/en/struct_pack/struct_pack_type_system.md +++ b/website/docs/en/struct_pack/struct_pack_type_system.md @@ -19,12 +19,12 @@ supported by `struct_pack`. | int16_t | Signed fixed-length 16-bit integer | complement code | | int32_t | Signed fixed-length 32-bit integer | complement code | | int64_t | Signed fixed-length 64-bit integer | complement code | -| int128_t (GCC/Clang only) | Signed fixed-length 64-bit integer | complement code | +| int128_t (GCC/Clang only) | Signed fixed-length 128-bit integer | complement code | | uint8_t | Unsigned fixed-length 8-bit integer | Original Code | | uint16_t | Unsigned fixed-length 16-bit integer | Original Code | | uint32_t | Unsigned fixed-length 32-bit integer | Original Code | | uint64_t | Unsigned fixed-length 64-bit integer | Original Code | -| uint128_t (GCC/Clang only)| Unsigned fixed-length 64-bit integer | Original Code | +| uint128_t (GCC/Clang only)| Unsigned fixed-length 128-bit integer | Original Code | | struct_pack::var_uint32_t | Unsigned variable-length 32-bit integer | `varint` variable length code | | struct_pack::var_uint64_t | Unsigned variable-length 64-bit integer | `varint` variable length code | | struct_pack::var_int32_t | Signed variable-length 32-bit integers | `varint`+`zigzag` variable length encoding | diff --git a/website/docs/zh/struct_pack/struct_pack_type_system.md b/website/docs/zh/struct_pack/struct_pack_type_system.md index 5afc1122e..101e6befe 100644 --- a/website/docs/zh/struct_pack/struct_pack_type_system.md +++ b/website/docs/zh/struct_pack/struct_pack_type_system.md @@ -13,28 +13,30 @@ struct_pack支持的类型主要包括:基本类型,约束类型,复合类 下列表格列出了struct_pack支持的所有基本类型: | 类型名 | 含义 | 编码 | -| ------------------------- | --------------------------- | --------------------- | +| ------------------------- | --------------------------- | ---------------------| | int8_t | 有符号定长8位整数 | 补码 | | int16_t | 有符号定长16位整数 | 补码 | | int32_t | 有符号定长32位整数 | 补码 | | int64_t | 有符号定长64位整数 | 补码 | +| int128_t(仅GCC/Clang) | 有符号定长128位整数 | 补码 | | uint8_t | 无符号定长8位整数 | 原码 | | uint16_t | 无符号定长16位整数 | 原码 | | uint32_t | 无符号定长32位整数 | 原码 | | uint64_t | 无符号定长64位整数 | 原码 | +| uint128_t(仅GCC/Clang) | 无符号定长128位整数 | 原码 | | struct_pack::var_uint32_t | 无符号变长32位整数 | varint变长编码 | | struct_pack::var_uint64_t | 无符号变长64位整数 | varint变长编码 | | struct_pack::var_int32_t | 有符号变长32位整数 | varint+zigzag变长编码 | | struct_pack::var_int64_t | 有符号变长64位整数 | varint+zigzag变长编码 | | float | 定长32位浮点数 | IEEE-754 单精度编码 | -| double | 定长64位整数 | IEEE-754 双精度编码 | +| double | 定长64位浮点数 | IEEE-754 双精度编码 | | char8_t | 8位字符 | 原码 | | char16_t | 16位字符 | 原码 | | char32_t | 32位字符 | 原码 | -| wchar_t | wchar字符(长度取决于平台) | 原码 | +| wchar_t | wchar字符(长度取决于平台) | 原码 | | bool | 布尔类型 | 原码 | | enum/enum class | 枚举类型 | 原码 | -| std::monostate | 空类型 | N/A | +| std::monostate | 空类型 | N/A | ## 约束类型