OpaqueRawPointer
OpaqueRawPointer[addr]
represents an untyped pointer to the memory address addr.
Details
- RawPointer can be used to represent typed pointers.
- OpaqueRawPointer[ptr] can be used to cast a pointer to an untyped pointer.
- Information for an OpaqueRawPointer may include the following properties:
-
"Address" memory address - Properties can be accessed with OpaqueRawPointer[…][prop].
- Properties that can be extracted include all Information properties listed above.
Examples
open allclose allBasic Examples (1)
Scope (1)
Information (1)
Get the pointer to a function in a library:
Get Information about 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:
Possible Issues (1)
OpaqueRawPointer returns a Failure for invalid memory addresses:
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