FromRawPointer
返回指针 p 引用的值,用于编译代码.
FromRawPointer[array,offset]
返回 C 数组在偏移处的值.
更多信息
- FromRawPointer 仅在编译代码中可用.
- 在无效输入上运行 FromRawPointer 可能会导致崩溃.
- FromRawPointer 可以处理指针和数组.
- FromRawPointer 的用法在 C 中近似等价于以下用法:
-
FromRawPointer[p] *p FromRawPointer[array,offset] array[offset] 或 *(array+offset)
范例
打开所有单元关闭所有单元范围 (1)
偏移 (1)
FromRawPointer 可以提取数组中的不同元素:
应用 (2)
Wolfram Research (2022),FromRawPointer,Wolfram 语言函数,https://reference.wolfram.com/language/ref/FromRawPointer.html.
文本
Wolfram Research (2022),FromRawPointer,Wolfram 语言函数,https://reference.wolfram.com/language/ref/FromRawPointer.html.
CMS
Wolfram 语言. 2022. "FromRawPointer." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/FromRawPointer.html.
APA
Wolfram 语言. (2022). FromRawPointer. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/FromRawPointer.html 年