Macaulay2 » Documentation
Packages » ForeignFunctions » ForeignType » ForeignPointerType » ForeignType * voidstar
next | previous | forward | backward | up | index | toc

ForeignType * voidstar -- dereference a voidstar object

Description

This is syntactic sugar for T value ptr (see ForeignType Pointer) for dereferencing pointers.

i1 : ptr = voidstar address int 5

o1 = 0x7fcd59c10b80

o1 : ForeignObject of type void*
i2 : int * ptr

o2 = 5

o2 : ForeignObject of type int32

Ways to use this method:


The source of this document is in /build/reproducible-path/macaulay2-1.25.06+ds/M2/Macaulay2/packages/ForeignFunctions.m2:2016:0.