OpaqueRawPointer

OpaqueRawPointer[addr]

表示一个内存地址 addr 的无类型指针.

更多信息

范例

打开所有单元关闭所有单元

基本范例  (1)

获取库函数的指针:

可用该指针加载外部函数:

调用外部函数:

范围  (1)

信息  (1)

获取库函数的指针:

获取指针的相关 Information

获取指针的内存地址:

属性和关系  (3)

如果无类型原始指针的地址为 0,NullRawPointerQ 返回 True

获取库函数的指针:

OpaqueRawPointer 转换为 RawPointer

将原始指针转换回 OpaqueRawPointer

创建外部回调函数:

获取其函数指针:

可能存在的问题  (1)

对于无效的内存地址,OpaqueRawPointer 返回 Failure

Wolfram Research (2023),OpaqueRawPointer,Wolfram 语言函数,https://reference.wolfram.com/language/ref/OpaqueRawPointer.html.

文本

Wolfram Research (2023),OpaqueRawPointer,Wolfram 语言函数,https://reference.wolfram.com/language/ref/OpaqueRawPointer.html.

CMS

Wolfram 语言. 2023. "OpaqueRawPointer." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/OpaqueRawPointer.html.

APA

Wolfram 语言. (2023). OpaqueRawPointer. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/OpaqueRawPointer.html 年

BibTeX

@misc{reference.wolfram_2024_opaquerawpointer, author="Wolfram Research", title="{OpaqueRawPointer}", year="2023", howpublished="\url{https://reference.wolfram.com/language/ref/OpaqueRawPointer.html}", note=[Accessed: 22-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_opaquerawpointer, organization={Wolfram Research}, title={OpaqueRawPointer}, year={2023}, url={https://reference.wolfram.com/language/ref/OpaqueRawPointer.html}, note=[Accessed: 22-November-2024 ]}