Skip to content

Commit

Permalink
[no ci] [Doc] fix doc (#355)
Browse files Browse the repository at this point in the history
  • Loading branch information
poor-circle committed Jul 6, 2023
1 parent 15ed609 commit b9fbd31
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/bazel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ on:
branches: [ main ]
pull_request:
branches: [ main ]

workflow_dispatch:

jobs:
build:
runs-on: ubuntu-22.04
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/clang-format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]
workflow_dispatch:

jobs:
build:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/linux_llvm_cov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Ubuntu 22.04 (llvm cov)
on:
pull_request_target:
branches: [ doc ]
workflow_dispatch:

jobs:
build:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ubuntu_clang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
pull_request:
branches: [ main, develop ]
workflow_call:
workflow_dispatch:

env:
ccache: ON
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ubuntu_gcc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
pull_request:
branches: [ main, develop ]
workflow_call:
workflow_dispatch:

env:
ccache: ON
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]
workflow_dispatch:

jobs:
windows_msvc:
Expand Down
4 changes: 2 additions & 2 deletions website/docs/en/struct_pack/struct_pack_type_system.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down
10 changes: 6 additions & 4 deletions website/docs/zh/struct_pack/struct_pack_type_system.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |

## 约束类型

Expand Down

0 comments on commit b9fbd31

Please sign in to comment.