WLJS LogoWLJS Notebook

ToRawPointer

ToRawPointer[] creates a new pointer object in compiled code, suitable for use with external libraries.

  • ToRawPointer[val] creates a new object pointing to the initial value val.
  • ToRawPointer[p, val] stores val in the pointer p.
  • ToRawPointer[array, offset, val] stores val in the "CArray" array at the given offset.

Examples

ToRawPointer[]
ToRawPointer[42]

Please visit the official Wolfram Language Reference for more details.

On this page