Skip to content

Commit a65b0af

Browse files
authored
Prepare release 4.3.0 (#449)
1 parent 25dbfab commit a65b0af

File tree

7 files changed

+32
-29
lines changed

7 files changed

+32
-29
lines changed

.github/workflows/docs-ci.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: docs
22

33
on:
4+
push:
5+
branches: dev
6+
pull_request:
47
workflow_dispatch:
58
# Inputs the workflow accepts.
69
inputs:
@@ -10,12 +13,6 @@ on:
1013
default: '3.39.12:3.39.x'
1114
# Input has to be provided for the workflow to run
1215
required: true
13-
comment:
14-
description: 'Comment only'
15-
# Default value if no value is explicitly provided
16-
default: ''
17-
# Input has to be provided for the workflow to run
18-
required: false
1916
env:
2017
DOCS_CI: 1
2118
PYTHON_VERSION: 3.x

CHANGELOG.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
1+
yasio-4.3.0
2+
3+
1. Use dynamic buffer for recv
4+
2. Improve kcp, invoke `ikcp_peeksize` before invoke `ikcp_recv`
5+
6+
17
yasio-4.2.4
28

39
1. Fix yasio_ni
410
2. Improve ohos support
5-
6-
11+
12+
713
yasio-4.2.3
814

915
1. Update llvm to 17.0.6 for msvc14.40 support

docs/api/reference/ibstream-class.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,12 +174,17 @@ uint8_t值。
174174

175175
## <a name="read_bytes"></a> ibstream_view::read_bytes
176176

177-
读取指定长度字节数据,无GC
177+
读取指定长度字节数据视图,此接口无数据拷贝
178178

179179
```cpp
180-
cxx17::string_view read_bytes();
180+
cxx17::string_view read_bytes(int len);
181181
```
182182
183+
### 参数
184+
185+
*len*<br/>
186+
要读取的字节数。
187+
183188
### 返回值
184189
185190
二进制数据的 `cxx17::string_view` 类型视图。

docs/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ WeasyPrint==60.2
55
mkdocs-pdf-export-plugin==0.5.10
66
mkdocs-minify-plugin==0.8.0
77
mike>=2.0.0
8-
Pillow==10.3.0
8+
Pillow==10.2.0
99
mkdocs-git-revision-date-localized-plugin
1010
mkdocs-redirects>=1.2.1
1111
jieba>=0.42.1

tools/docs.ps1

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,28 +9,23 @@ mike delete --all
99

1010
Write-Host "Active versions: $rel_str"
1111

12-
if ("$rel_str" -eq "") {
13-
Write-Error "docs versions list can't be empty, should be 'docs_ver[:docs_tag],...'"
14-
exit 1
15-
}
16-
17-
$rel_arr = ($rel_str -split ',')
18-
1912
$docs_ver = $null
20-
foreach($rel in $rel_arr) {
21-
# ver:tag
22-
$info = ($rel -split ':')
23-
$docs_ver = $info[0]
24-
$docs_tag = if ($info.Count -ge 2) { $info[1] } else { "v$($info[0])" }
25-
git checkout "$docs_tag"
26-
mike deploy $docs_ver
13+
if ($rel_str) {
14+
$rel_arr = ($rel_str -split ',')
15+
foreach($rel in $rel_arr) {
16+
# ver:tag
17+
$info = ($rel -split ':')
18+
$docs_ver = $info[0]
19+
$docs_tag = if ($info.Count -ge 2) { $info[1] } else { "v$($info[0])" }
20+
git checkout "$docs_tag"
21+
mike deploy $docs_ver
22+
}
2723
}
2824

2925
git checkout dev
3026
mike deploy latest
3127
mike list
3228

33-
if ($env:GITHUB_ACTIONS -eq 'true') {
29+
if ($docs_ver -and ($env:GITHUB_ACTIONS -eq 'true')) {
3430
mike set-default $docs_ver --push
3531
}
36-

yasio.pc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ includedir=${exec_prefix}/include
55

66
Name: yasio
77
Description: A multi-platform support c++11 library with focus on asio (asynchronous socket I/O) for any client application.
8-
Version: 4.2.4
8+
Version: 4.3.0
99
Libs: -L${libdir}
1010
Cflags: -I${includedir}/yasio

yasio/config.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ SOFTWARE.
205205
/*
206206
** The yasio version macros
207207
*/
208-
#define YASIO_VERSION_NUM 0x040205
208+
#define YASIO_VERSION_NUM 0x040300
209209

210210
/*
211211
** The macros used by io_service.

0 commit comments

Comments
 (0)