OpaqueRawPointer

OpaqueRawPointer[addr]

represents an untyped pointer to the memory address addr.

Details

Examples

open allclose all

Basic Examples  (1)

Get the pointer to a function in a library:

This pointer can be used to load a foreign function:

Call the foreign function:

Scope  (1)

Information  (1)

Get the pointer to a function in a library:

Get Information about the pointer:

Get the memory address of the pointer:

Properties & Relations  (3)

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

Get the pointer to a function in a library:

Convert an OpaqueRawPointer into a RawPointer:

Convert the raw pointer back to an OpaqueRawPointer:

Create a foreign callback function:

Obtain its function pointer:

Possible Issues  (1)

OpaqueRawPointer returns a Failure for invalid memory addresses:

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.

CMS

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

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: 19-June-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: 19-June-2024 ]}