Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
8a9012c3
D
Docs
项目概览
OpenHarmony
/
Docs
1 年多 前同步成功
通知
159
Star
292
Fork
28
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
Docs
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
8a9012c3
编写于
5月 19, 2023
作者:
O
openharmony_ci
提交者:
Gitee
5月 19, 2023
浏览文件
操作
浏览文件
下载
差异文件
!18427 Modifying BigInt type data in buffer that cannot be compiled in ets to 3.2Release
Merge pull request !18427 from bihu/cherry-pick-1684480436
上级
4db891df
285902e1
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
14 addition
and
14 deletion
+14
-14
zh-cn/application-dev/reference/apis/js-apis-buffer.md
zh-cn/application-dev/reference/apis/js-apis-buffer.md
+8
-8
zh-cn/application-dev/reference/apis/js-apis-util.md
zh-cn/application-dev/reference/apis/js-apis-util.md
+6
-6
未找到文件。
zh-cn/application-dev/reference/apis/js-apis-buffer.md
浏览文件 @
8a9012c3
...
...
@@ -872,7 +872,7 @@ let buf = buffer.from([0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, 0x70,
console
.
log
(
buf
.
readBigInt64BE
(
0
).
toString
());
let
buf1
=
buffer
.
allocUninitializedFromPool
(
8
);
let
result
=
buf1
.
writeBigInt64BE
(
0x0102030405060708
n
,
0
);
let
result
=
buf1
.
writeBigInt64BE
(
BigInt
(
0x0102030405060708
)
,
0
);
```
### readBigInt64LE
...
...
@@ -913,7 +913,7 @@ let buf = buffer.from([0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, 0x70,
console
.
log
(
buf
.
readBigInt64LE
(
0
).
toString
());
let
buf1
=
buffer
.
allocUninitializedFromPool
(
8
);
let
result
=
buf1
.
writeBigInt64BE
(
0x0102030405060708
n
,
0
);
let
result
=
buf1
.
writeBigInt64BE
(
BigInt
(
0x0102030405060708
)
,
0
);
```
### readBigUInt64BE
...
...
@@ -954,7 +954,7 @@ let buf = buffer.from([0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, 0x70,
console
.
log
(
buf
.
readBigUInt64BE
(
0
).
toString
());
let
buf1
=
buffer
.
allocUninitializedFromPool
(
8
);
let
result
=
buf1
.
writeBigUInt64BE
(
0xdecafafecacefade
n
,
0
);
let
result
=
buf1
.
writeBigUInt64BE
(
BigInt
(
0xdecafafecacefade
)
,
0
);
```
### readBigUInt64LE
...
...
@@ -995,7 +995,7 @@ let buf = buffer.from([0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, 0x70,
console
.
log
(
buf
.
readBigUInt64LE
(
0
).
toString
());
let
buf1
=
buffer
.
allocUninitializedFromPool
(
8
);
let
result
=
buf1
.
writeBigUInt64BE
(
0xdecafafecacefade
n
,
0
);
let
result
=
buf1
.
writeBigUInt64BE
(
BigInt
(
0xdecafafecacefade
)
,
0
);
```
### readDoubleBE
...
...
@@ -2045,7 +2045,7 @@ writeBigInt64BE(value: bigint, offset?: number): number
import
buffer
from
'
@ohos.buffer
'
;
let
buf
=
buffer
.
allocUninitializedFromPool
(
8
);
let
result
=
buf
.
writeBigInt64BE
(
0x0102030405060708
n
,
0
);
let
result
=
buf
.
writeBigInt64BE
(
BigInt
(
0x0102030405060708
)
,
0
);
```
### writeBigInt64LE
...
...
@@ -2084,7 +2084,7 @@ writeBigInt64LE(value: bigint, offset?: number): number
import
buffer
from
'
@ohos.buffer
'
;
let
buf
=
buffer
.
allocUninitializedFromPool
(
8
);
let
result
=
buf
.
writeBigInt64LE
(
0x0102030405060708
n
,
0
);
let
result
=
buf
.
writeBigInt64LE
(
BigInt
(
0x0102030405060708
)
,
0
);
```
### writeBigUInt64BE
...
...
@@ -2123,7 +2123,7 @@ writeBigUInt64BE(value: bigint, offset?: number): number
import
buffer
from
'
@ohos.buffer
'
;
let
buf
=
buffer
.
allocUninitializedFromPool
(
8
);
let
result
=
buf
.
writeBigUInt64BE
(
0xdecafafecacefade
n
,
0
);
let
result
=
buf
.
writeBigUInt64BE
(
BigInt
(
0xdecafafecacefade
)
,
0
);
```
### writeBigUInt64LE
...
...
@@ -2162,7 +2162,7 @@ writeBigUInt64LE(value: bigint, offset?: number): number
import
buffer
from
'
@ohos.buffer
'
;
let
buf
=
buffer
.
allocUninitializedFromPool
(
8
);
let
result
=
buf
.
writeBigUInt64LE
(
0xdecafafecacefade
n
,
0
);
let
result
=
buf
.
writeBigUInt64LE
(
BigInt
(
0xdecafafecacefade
)
,
0
);
```
### writeDoubleBE
...
...
zh-cn/application-dev/reference/apis/js-apis-util.md
浏览文件 @
8a9012c3
...
...
@@ -1646,18 +1646,18 @@ compareTo(other: ScopeComparable): boolean;
```
js
class
Temperature
{
constructor
(
value
){
// 当使用ts语言开发时,需要补充以下代码:
// private readonly _temp: Temperature;
// 当使用ArkTS语言开发时,需要补充以下代码:
// private readonly _temp: Temperature;
constructor
(
value
)
{
this
.
_temp
=
value
;
}
compareTo
(
value
){
compareTo
(
value
)
{
return
this
.
_temp
>=
value
.
getTemp
();
}
getTemp
(){
getTemp
()
{
return
this
.
_temp
;
}
toString
(){
toString
()
{
return
this
.
_temp
.
toString
();
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录