Move.

帖子

分享您的知识。

Elvin CLONE .
Mar 20, 2025
专家问答

What's the `native` keyword used for in programming?

I'm trying to understand what the native keyword is used for. I know it's related to core data structures and cryptographic functions, but I need more details on its purpose and functioning. Any insights?

  • Move CLI
0
1
分享
评论
.

答案

1
Xavier.eth.
Mar 20 2025, 15:23

native该关键字在编程中用于表示某些函数或数据结构是在系统级别或机器语言中实现的. 这允许这些组件直接在移动虚拟机 (VM) 上运行. 通过使用此关键字,这些核心元素可以更高效地运行,因为它们可以绕过与更高级别的语言结构相关的部分开销. 这种原生实现通常出现在核心数据结构和加密函数等关键领域,在这些领域,性能和安全操作至关重要.

1
最佳答案
评论
.

你知道答案吗?

请登录并分享。

Move is an executable bytecode language used to implement custom transactions and smart contracts.

148帖子231答案
Sui.X.Peera.

赚取你的 1000 Sui 份额

获取声誉积分,并因帮助 Sui 社区成长而获得奖励。

奖励活动五月
我们使用 cookie 确保您在我们的网站上获得最佳体验。
更多信息