WOLFRAM

represents an untyped pointer to the memory address addr.

Details

Examples

open allclose all

Basic Examples  (1)Summary of the most common use cases

Get the pointer to a function in a library:

Out[1]=1

This pointer can be used to load a foreign function:

Out[2]=2

Call the foreign function:

Out[5]=5

Scope  (1)Survey of the scope of standard use cases

Information  (1)

Get the pointer to a function in a library:

Out[1]=1

Get Information about the pointer:

Out[2]=2

Get the memory address of the pointer:

Out[3]=3

Properties & Relations  (3)Properties of the function, and connections to other functions

NullRawPointerQ returns True if an opaque raw pointer has 0 as its address:

Out[1]=1

Get the pointer to a function in a library:

Out[1]=1

Convert an OpaqueRawPointer into a RawPointer:

Out[2]=2

Convert the raw pointer back to an OpaqueRawPointer:

Out[3]=3

Create a foreign callback function:

Out[1]=1

Obtain its function pointer:

Out[2]=2

Possible Issues  (1)Common pitfalls and unexpected behavior

OpaqueRawPointer returns a Failure for invalid memory addresses:

Out[1]=1
Wolfram Research (2023), OpaqueRawPointer, Wolfram Language function, https://reference.wolfram.com/language/ref/OpaqueRawPointer.html.
Wolfram Research (2023), OpaqueRawPointer, Wolfram Language function, https://reference.wolfram.com/language/ref/OpaqueRawPointer.html.

Text

Wolfram Research (2023), OpaqueRawPointer, Wolfram Language function, https://reference.wolfram.com/language/ref/OpaqueRawPointer.html.

Wolfram Research (2023), OpaqueRawPointer, Wolfram Language function, https://reference.wolfram.com/language/ref/OpaqueRawPointer.html.

CMS

Wolfram Language. 2023. "OpaqueRawPointer." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/OpaqueRawPointer.html.

Wolfram Language. 2023. "OpaqueRawPointer." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/OpaqueRawPointer.html.

APA

Wolfram Language. (2023). OpaqueRawPointer. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/OpaqueRawPointer.html

Wolfram Language. (2023). OpaqueRawPointer. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/OpaqueRawPointer.html

BibTeX

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

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

BibLaTeX

@online{reference.wolfram_2025_opaquerawpointer, organization={Wolfram Research}, title={OpaqueRawPointer}, year={2023}, url={https://reference.wolfram.com/language/ref/OpaqueRawPointer.html}, note=[Accessed: 07-June-2025 ]}

@online{reference.wolfram_2025_opaquerawpointer, organization={Wolfram Research}, title={OpaqueRawPointer}, year={2023}, url={https://reference.wolfram.com/language/ref/OpaqueRawPointer.html}, note=[Accessed: 07-June-2025 ]}