Android AIDL 支持“短”类型?

发布于 2024-11-25 02:45:15 字数 261 浏览 4 评论 0原文

AIDL支持短类型吗?

http://developer.android.com/guide/developing/tools/aidl.html

说“Java编程语言中的所有原始类型(例如int、long、char、boolean等)”

但是AIDL中似乎不能使用short。

谢谢 !

Does AIDL support short type ?

http://developer.android.com/guide/developing/tools/aidl.html

It said "All primitive types in the Java programming language (such as int, long, char, boolean, and so on)"

But it seems cannot use short in AIDL.

thanks !

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

—━☆沉默づ 2024-12-02 02:45:15

我认为它不会:/所以使用 int 并将其转换回短类型

I think it does not :/ so use an int and cast it back to short afterwards

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文