Binder Native
2017-04-10 17:14:35 0 举报
Binder Native是Android框架中的一种机制,用于实现跨语言的通信。它是一种轻量级的远程过程调用(RPC)机制,允许应用程序在不同的进程之间共享数据和资源。通过Binder Native,开发者可以使用C/C++编写高性能的本地代码,并将其与Java或Kotlin等高级语言编写的代码进行集成。这种机制在Android系统中广泛应用,例如在处理图形渲染、音频处理和硬件交互等任务时,可以提高系统的性能和效率。总之,Binder Native是Android框架中一种强大的跨语言通信工具,它使得开发者能够更好地利用各种编程语言的优势,为用户提供更优秀的应用体验。
作者其他创作
大纲/内容
RefBase
BnXxx
- onTransact(): status_t
BpBinder
transact(): status_t
IXxxService
+ func_X()
BnInterface
IBinder
+ transact(): status_t
BpInterface
IInterface
+ asBinder()+ asBinder()- onAsBinder()
Xxx
BpXxx
BBinder
+ transact(): status_t-onTransact(): status_t
BpRefBase
mRemote: IBinder* const
remote(): IBinder*
0 条评论
下一页